Regular Expressions 101

  • PCRE2 (PHP)
  • Substitution
0

Regular Expression

/
\bword\b
/
gm

Description

Check if a string contains the word word in it (case insensitive). If you have no idea, I guess you could try /word/.

Submitted by Anonymous