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


/
g

Regex Flags


Unit Tests

given the string kid@houseparty.com assert that full match starts with houseparty
given the string kid@houseparty.io assert that full match starts with houseparty
given the string kid@houseparty assert that regex does not match
given the string kid.n.play@houseparty.com assert that full match starts with houseparty
given the string kid.n.play@houseparty.io assert that full match starts with houseparty
given the string kid.n.play@houseparty assert that regex does not match
given the string kid.n.play@house.party.com assert that full match starts with house.party
given the string kid.n.play@house-party.com assert that full match starts with house-party

Tools and Filters