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 (10)
Sponsors
An explanation of your regex will be automatically generated as you type.

Regular Expression

Regex Versions


/

Delimiters


/
g

Regex Flags


Unit Tests

Correct Format A
Correct Format B
Space Missing after *
Small Case For "added"
Small Case For "updated"
Double Stars Without Spaces
Double Stars with Spaces
Space Between [S3] and * Missing
Missing Period At The End
Random Symbol's Intead of *

Tools and Filters



Regex Debugger

Please wait while your expression is being debugged...