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

Tools

An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.

Regular Expression
No Match

Regex Versions


r"

Delimiters


"
g

Regex Flags


Test String