Regular Expressions 101

Save & Share

Flavor

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
&#(\b174;)
/
&#
matches the characters &# literally (case sensitive)
1st Capturing Group
(\b174;)
\b assert position at a word boundary: (^\w|\w$|\W\w|\w\W)
174;
matches the characters 174; literally (case sensitive)
Your regular expression does not match the subject string.Try launching the debugger to find out why.

Regular Expression
No Match

/
/

Test String

Substitution

Processing...