views:

111

answers:

2

I use vim, sed, bash and Perl. Each has somewhat different regex syntax. I just spent time finding that I need to escape the curly parens in sed, but not in BASH (when using them as counter elements). Grrr.

Can anybody point me to a table that summarizes the differences between the different regex parsers in these 4 environments.

TIA

+1  A: 

Jan Goyvaerts.'s site regular-expressions.info has a listing of popular regex engines and which options they support.

Chas. Owens
+6  A: 

http://www.regular-expressions.info/refflavors.html - scroll down a bit.

Bash uses posix regexes. Sed and vim (which uses ed) use what are listed as "GNU BRE", although this depends on what flags you pass.