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 (C#)
  • Rust

Function

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

Tools

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

Regular Expression

Regex Versions


/

Delimiters


/

Regex Flags


Unit Tests

given the string 100 assert that regex does match
given the string 0 assert that regex does match
given the string 10 assert that regex does match
given the string 50 assert that regex does match
given the string 1,56 assert that regex does match
given the string 1.25 assert that regex does match
given the string 50,5 assert that regex does match
given the string 200 assert that regex does not match
given the string 250 assert that regex does not match
given the string 275.25 assert that regex does not match
given the string 100-2 assert that regex does not match
given the string 1-2 assert that regex does not match
given the string -12 assert that regex does not match
given the string -12.5 assert that regex does not match
given the string -1,5 assert that regex does not match
given the string 1500 assert that regex does not match
given the string 100,00 assert that regex does match
given the string empty string assert that regex does not match

Tools and Filters



Regex Debugger

Please wait while your expression is being debugged...