Regular Expressions 101

Save & Share

  • Save new Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s
  • Add to Community Library

FlavorNeed help selecting flavor?

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests (5)

Tools

An explanation of your regex will be automatically generated as you type.

Regular Expression

Regex Versions


/

Delimiters


/

Regex Flags


Unit Tests

given the string ryan..stade@mpi.mb.ca assert that regex does match
given the string _rayn.stade_@mpi.ma assert that regex does match
given the string _ryan_@mpi.mb assert that regex does match
given the string _rstad@mpi.mb.ca assert that regex does match
given the string rstade@mpi.mb.ca assert that regex does match

Tools and Filters