Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?i)(f(.*)?(\s)?o(.*)?(\s)?r(.*)?(\s)?t(.*)?(\s)?n(.*)?(\s)?i(.*)?(\s)?t(.*)?(\s)?e)
/
gm

Description

It is not compatible with leet speak, you can replace all numbers with their letter counterparts before matching the string with regex.

Submitted by Kyza - 6 years ago