DEV Community

Discussion on: Do we need Regex?

Collapse
 
emadsaber profile image
emadsaber

I feel myself in matrix movie when I start writing regex :D I feel it complicated and not easy to remember however I tried to study it more than 3 times. \

But let us say a fair word:

  • Regex is very powerful and fast in matching complex string patterns
  • Regex can substitute multiple lines of code with a simple formula
  • Regex is supported by nearly all programming languages
  • Regex is stable

but,

  • Regex is complex
  • Regex is tricky, some formulas you may interpret them as different than their actual function.
Collapse
 
muhammadmp profile image
Muhammad MP

Good answer.