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
/
^\s<p>\s(?:</?\w/?>\s)*<a href="(?:(?:[a-z]:)?//(?:[^" >/.]\.)*(?:youtube\.com|youtu\.be)[/"])\W(?![\W\w]</(?:code|blockquote)>)(?#Separate start with youtube watch; lower TP rate, but most TP are not otherwise detected)
/
gm
All the errors detected are listed below, from left to right, as they appear in the pattern.
/ An unescaped delimiter must be escaped with a backslash (\)
? The preceding token is not quantifiable
/ An unescaped delimiter must be escaped with a backslash (\)
? The preceding token is not quantifiable
/ An unescaped delimiter must be escaped with a backslash (\)
/ An unescaped delimiter must be escaped with a backslash (\)
/ An unescaped delimiter must be escaped with a backslash (\)
? The preceding token is not quantifiable
Your regular expression does not match the subject string.

Regular Expression
No Match

/
/
gm

Test String