Regular Expressions 101

Save & Share

  • Save Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8

Function

  • Match
  • Substitution
  • List
  • Unit Tests
"
[^u]es|ee|m.i|y|^...c|d.*a
"
gm
1st Alternative
[^u]es
Match a single character not present in the list below
[^u]
u matches the character u with index 11710 (7516 or 1658) literally (case sensitive)
es
matches the characters es literally (case sensitive)
2nd Alternative
ee
ee
matches the characters ee literally (case sensitive)
3rd Alternative
m.i
m matches the character m with index 10910 (6D16 or 1558) literally (case sensitive)
. matches any character (except for line terminators)
i matches the character i with index 10510 (6916 or 1518) literally (case sensitive)
4th Alternative
y
y matches the character y with index 12110 (7916 or 1718) literally (case sensitive)
5th Alternative
^...c
^ asserts position at start of a line
. matches any character (except for line terminators)
. matches any character (except for line terminators)
. matches any character (except for line terminators)
c matches the character c with index 9910 (6316 or 1438) literally (case sensitive)
6th Alternative
d.*a
d matches the character d with index 10010 (6416 or 1448) literally (case sensitive)
.
matches any character (except for line terminators)
* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
a matches the character a with index 9710 (6116 or 1418) literally (case sensitive)
Global pattern flags
g modifier: global. All matches (don't return after first match)
m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)
Your regular expression does not match the subject string.

Regular Expression
No Match

r"
"
gm

Test String