ocodo
ocodo

Reputation: 30248

List of all regex implementations?

Is there a list of Regex implementations on the web, showing their differences / similarities?

For exaple, Emacs elisp Regex is different to JavaScript or Perl regex, not to mention all the different implementations used by different editor software,

e.g. VS2010 uses {} instead of () to group expressions for back references.

Once upon a time I could rely on a Regex conversion list in O'Reilly's Regex Pocket Quick Reference, but something online would be so much easier, and complete.

By the way, I am aware of (of course) http://www.regular-expressions.info/ which is good, but no where near complete.

I'll compile a list from the answers posted here, and anything else I can find.

Variations

General Variations

The differences in implementations are usually the way special characters {}()[]^$ are handled (escaping rules etc.), and occasionally substituted; the handling/availability of POSIX character classes e.g. [:digit:], and the use of options, e.g. g i etc.

(a work in progress, if you know any caveats, differences for these implementations please add them as an answer)

Additional references.

Upvotes: 28

Views: 7499

Answers (4)

funky-future
funky-future

Reputation: 3958

I found this overview very useful when i get confused with the different variants.

Upvotes: 2

Stefan Schmidt
Stefan Schmidt

Reputation: 3957

There is a list of libraries, languages and applications supporting regular expressions on Wikipedia which includes a feature comparison table:

http://en.wikipedia.org/wiki/Comparison_of_regular_expression_engines

Upvotes: 2

Gumbo
Gumbo

Reputation: 655239

Take a look at the Regular Expression Flavor Comparison on Regular-Expressions.info. It contains at least the nowadays most important regular expression implementations and their characteristics.

Upvotes: 9

Amber
Amber

Reputation: 526593

http://www.regular-expressions.info is the closest thing I know to a comprehensive list (and even it is nowhere near complete). (This page in particular.)

Upvotes: 4

Related Questions