Regular Expressions 101

Save & Share

  • Save Regex
    ctrl+s
  • Go to library entry

FlavorNeed help selecting flavor?

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests (8)
Sponsors
An explanation of your regex will be automatically generated as you type.

Regular Expression

Regex Versions


/

Delimiters


/
i

Regex Flags


Unit Tests

given the string 3411 AC assert that regex does match
given the string 4706 LK assert that regex does match
given the string 2522JV assert that regex does match
given the string 2522 jv assert that regex does match
given the string 2522jV assert that regex does match
given the string NL-2522 JV assert that regex does match
given the string 3431 SO assert that regex does not match
given the string 1245j assert that regex does not match

Tools and Filters