Search code examples
regexprogramming-languages

Regexp performancing in different languages


If in PHP, some regex pattern is better for performancing than second pattern, this means that this pattern will also better in JAVA's or in javascript's or in postgreSQL's regex?

That is, in different language/DB, regexp working is same or differently ?


Solution

  • There is not the same perfomace. I've found article about benchmarking regex on various languages. You may find it useful.

    and here you will find some information about handling regexs in various languages

    http://www.regular-expressions.info/refflavors.html

    Also you may want to read this:

    Regex performances between languages or libraries