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

Regular Expression

Regex Versions


"

Delimiters


"
gs

Regex Flags


Unit Tests

given the string https://www.instagram.com/_philipplackne… assert that regex does match
given the string http://instagram.com/_philipplackner_/ assert that regex does match
given the string https://instagram.com/_philipplackner_/ assert that regex does match
given the string https://www.instagr.com/_philipplackner_… assert that regex does match
given the string https://www.instagr.am/_philipplackner_/ assert that regex does match

Tools and Filters