Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Save & Share

  • Save Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python 2.7
  • Golang
  • Java 8

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
^(file:\/)|(qrc:\/)|(http:\/)
/
1st Alternative
^(file:\/)
^ asserts position at start of the string
1st Capturing Group
(file:\/)
file: matches the characters file: literally (case sensitive)
\/
matches the character / literally (case sensitive)
{3} matches the previous token exactly 3 times
2nd Alternative
(qrc:\/)
2nd Capturing Group
(qrc:\/)
qrc: matches the characters qrc: literally (case sensitive)
\/
matches the character / literally (case sensitive)
{2} matches the previous token exactly 2 times
3rd Alternative
(http:\/)
3rd Capturing Group
(http:\/)
http: matches the characters http: literally (case sensitive)
\/
matches the character / literally (case sensitive)
{2} matches the previous token exactly 2 times
Your regular expression does not match the subject string.Try launching the debugger to find out why.

Regular Expression
No Match

/
/

Test String