Regular expressions can be non-optimal like the following:
/yes or no|yes and no/
The above can be simplified to:
/yes (?:or|and) no/
Does anybody know of software to optimize regular expressions?
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.
Sign up to join this communityRegular expressions can be non-optimal like the following:
/yes or no|yes and no/
The above can be simplified to:
/yes (?:or|and) no/
Does anybody know of software to optimize regular expressions?
I'm quoting this answer by @gpojd on Stack Overflow:
If you are using perl, you could use Regexp::Optimizer or Regexp::Assemble.
I don't know of any online tools that do what you ask.
I have no experience with those tools (or any other that would be capable of this).