Regular Expressions 101

Community Patterns

Word filter

1

Regular Expression
ECMAScript (JavaScript)

/
\b(r(a|à|á|â|ä|æ|ã|å|ā)p(e|3|è|é|ê|ë|ē|ė|ę))\s*
/
gim

Description

This regex matches up with the word rape, even if accent marks are used.

Submitted by Ethan Lawrence - 6 years ago