Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Features common to all regex flavors?

I've seen a lot of commonality in regex capabilities of different regex-enabled tools/languages (e.g. perl, sed, java, vim, etc), but I've also many differences.

Is there a standard subset of regex capabilities that all regex-enabled tools/languages will support? How do regex capabilities vary between tools/languages?

like image 455
Ben Lever Avatar asked Aug 27 '08 13:08

Ben Lever


People also ask

Is regex common for all languages?

Regex is not a programming language-specific application; in fact, it can be used in all programming languages today. Programming languages give support to the usage of Reges, but all the magic and strength comes from the Regex itself.

What are the benefits of regex regular expressions?

A Regular Expression is used for identifying a search pattern in a text string. It also helps in finding out the correctness of the data and even operations such as finding, replacing and formatting the data is possible using Regular Expressions.

What are the different regex types?

There are also two types of regular expressions: the "Basic" regular expression, and the "extended" regular expression.

What are the regex special characters?

Special Regex Characters: These characters have special meaning in regex (to be discussed below): . , + , * , ? , ^ , $ , ( , ) , [ , ] , { , } , | , \ . Escape Sequences (\char): To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ).


1 Answers

Compare Regular Expression Flavors

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

like image 78
Jeff Atwood Avatar answered Sep 20 '22 11:09

Jeff Atwood