Regex in cPanel not behaving as expected

Viewed 9

Trying to set up an email server global filter in cPanel (Paper Lantern).

Trying to find strings of for example:

SSS

that is SSS alone on a line,

but then not matching for example:

aaaSSSaaa

and not matching for example

aaaSSS

and not matching for example

SSSaaa

Got as far as SSS(\r\n|\r|\n) that work in some cases.

But for example (\r\n|\r|\n)SSS(\r\n|\r|\n) to cover all cases will not work...

(?m)^SSS$ works in a Regex test environment but not in cPanel for some reason....

Any ideas?

0 Answers
Related