Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do all languages support any common regex syntax?

Tags:

regex

Is there any regex standard ? Is PCRE supported by all regex engines ?

Thanks for replies

like image 351
user441425 Avatar asked May 19 '26 06:05

user441425


1 Answers

No. There are many regex syntaxes, all vaguely related, but with various differences that frequently require changes when moving a regex from one matching engine to another.

Perl/PCRE is one of the most common, but you'll also probably need to understand the differences in the grep, egrep and vi flavors, if you use any Unixy system. If your programming language of choice isn't Perl and its regex implementation isn't based on PCRE, it likely has additional quirks.

like image 157
Warren Young Avatar answered May 23 '26 08:05

Warren Young