Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 5
    It would help if you had a specific example. Are there alternatives? Yes. Are they effective? It depends. Commented Feb 9, 2021 at 17:12
  • You can test your regular expressions here: regexr.com It will make learning much easier. As for alternatives, the answer might be "no", depending on how you're using them. Commented Feb 9, 2021 at 17:16
  • 1
    The alternative to regex is to use basic string operations and write a lot of more code, which can often be a lot more effort to develop & to maintain. Commented Feb 10, 2021 at 6:09
  • If you can learn python, you can probably fully learn the fundamentals of regular expressions in a single day. Just devote one day to it and you'll be rewarded for the rest of your career. Regular expressions may seem mysterious, but they are not. They are very deterministic and only require learning a handful of rules. Commented Feb 27, 2021 at 16:15