Regular Expressions 101

Save & Share

  • Fork Regex
    ctrl+s
  • Go to community entry

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 (8)

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 me@gmail.com assert that regex does match
given the string 13@gmail.com assert that regex does match
given the string 13@13.com assert that regex does match
Numbers in Email Format should Fail
Empty String should Fail
Empty Space should Fail
Double Dots should Fail
Double @@ should Fail

Tools and Filters