Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Save & Share

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

Flavor

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests
`
\(|\)|\*\*|\^|//|%|\+|\-|\*|/|(?P<num>(?:[0-9](?:\.[0-9])?|\.[0-9])(?:e[+-][0-9])?)|(?P<id>(?i)[a-z_][a-z0-9_])|(?P<ws>\s)
`
gm
1st Alternative
\(
\( matches the character ( literally (case sensitive)
2nd Alternative
\)
\) matches the character ) literally (case sensitive)
3rd Alternative
\*\*
\* matches the character * literally (case sensitive)
\* matches the character * literally (case sensitive)
4th Alternative
\^
\^ matches the character ^ literally (case sensitive)
5th Alternative
//
// matches the characters // literally (case sensitive)
6th Alternative
%
% matches the character % literally (case sensitive)
7th Alternative
\+
\+ matches the character + literally (case sensitive)
8th Alternative
\-
\- matches the character - literally (case sensitive)
9th Alternative
\*
\* matches the character * literally (case sensitive)
10th Alternative
/
/ matches the character / literally (case sensitive)
11th Alternative
(?P<num>(?:[0-9](?:\.[0-9])?|\.[0-9])(?:e[+-][0-9])?)
12th Alternative
(?P<id>(?i)[a-z_][a-z0-9_])
13th Alternative
(?P<ws>\s)
Global pattern flags
Your regular expression does not match the subject string.

Regular Expression
No Match

`
`
gm

Test String