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
/
(\x{a9}|\x{ae}|[\x{2000}-\x{3300}]|[\x{1F000}-\x{1FBFF}])
/
ug
1st Capturing Group
(\x{a9}|\x{ae}|[\x{2000}-\x{3300}]|[\x{1F000}-\x{1FBFF}])
1st Alternative
\x{a9}
\x{a9} matches the character © with index A916 (16910 or 2518) literally (case sensitive)
2nd Alternative
\x{ae}
\x{ae} matches the character ® with index AE16 (17410 or 2568) literally (case sensitive)
3rd Alternative
[\x{2000}-\x{3300}]
Match a single character present in the list below
[\x{2000}-\x{3300}]
\x{2000}-\x{3300} matches a single character in the range between   (index 8192) and (index 13056) (case sensitive)
4th Alternative
[\x{1F000}-\x{1FBFF}]
Match a single character present in the list below
[\x{1F000}-\x{1FBFF}]
\x{1F000}-\x{1FBFF} matches a single character in the range between 🀀 (index 126976) and 🯿 (index 130047) (case sensitive)
Global pattern flags
u modifier: unicode. Pattern strings are treated as UTF-16. Also causes escape sequences to match unicode characters
g modifier: global. All matches (don't return after first match)
Your regular expression does not match the subject string.Try launching the debugger to find out why.

Regular Expression
No Match

/
/
ug

Test String