Welcome tag moderator AKA Unofficial DEV cheerleader. While most of my friends are found on SnapChat or Tic-Toc, you can find me here. And I OOP, but I’m not a VSCO girl.
I am a Software developer who loves to work at the backend and fly in the frontend. You can see me blogging on C#, Java, Javascript, React, and some outside the topic.
Definitely there is some case where regex are the only solution when the input string is not none but we know the pattern of input string. But the conditions I have explained are the ones I am facing with my recent project. I am dealing with a string token where, some string token are completely unique and for some tokens first few characters do repeat and they are bit of same type. For such case they are ideal solution.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There are usually more conditions to factor in like case and culture. How would that affect your best method for comparison?
Definitely there is some case where regex are the only solution when the input string is not none but we know the pattern of input string. But the conditions I have explained are the ones I am facing with my recent project. I am dealing with a string token where, some string token are completely unique and for some tokens first few characters do repeat and they are bit of same type. For such case they are ideal solution.