Regular Expressions 101

Save & Share

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

Flavor

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
para(?!psicología|normal)
/
g
para
matches the characters para literally (case sensitive)
Negative Lookahead
(?!psicología|normal)
Assert that the Regex below does not match
1st Alternative
psicología
psicología
matches the characters psicología literally (case sensitive)
2nd Alternative
normal
normal
matches the characters normal literally (case sensitive)
Global pattern flags
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

/
/
g

Test String