What is this?
It is a collection of questions and answers. It's also a community wiki so everyone is welcome to contribute, usually less reputation is required than for a lot of the stuff on the site.
What for?
It is a tag that suffers from questions of the type "tell me what my regular expression means".
What is the scope?
Essentially these languages:
It might seem very extensive, but these languages share common features.
ranks
range of non-sequential elements (eg [,;])
Range of negated characters (eg [^a])
Quantifiers
escape sequences
\.
metacharacters
character classes
groups
Lookarounds
Negative look ahead?!
Positive look ahead ?=
match types
Greedy
Language-specific features
Java
split()
By default regular expressions are greedy . This means that a regular expression returns the longest string of text that matches it.
Regular expressions are also eager to return a result.
Basic metacharacters
Metacharacters must be escaped when used as normal characters.
modifiers
Character Classes (Ranges)
specific characters
anchors
Statements
backreferences
To designate a backreference, we sometimes use the backslash ( \ ), sometimes the dollar ( $ ), depending on the language used.
UNICODE wildcards
Support:
Yes: Java, .NET, Perl, PHP, Ruby
Not: JavaScript, Python, Unix
POSIX (Portable Operating System Interface)
Correct way to use them: [[:alpha:]] or [^[:alpha:]].
Support:
YES: Perl, PHP, Ruby, Unix
NOT: Java, JavaScript, .NET, Python
All of this is copied from my website . I hope it is useful.