Karsten Bräckelmann a écrit :
On Thu, 2008-02-28 at 14:26 +0100, Samuel Krieg wrote:
I'm trying to create a rule to identify "\/ista" (with backslash + slash).

This does not seem to work:

body    WNG_OBFUVISTA   /\b\\\/ista\b/i
                           ^^^^
The backslash is not a word character. Thus, the \b word boundary
requires a word immediately preceding this (rather than a non-word). In
other words, this would fire only, if there is a char before this. It
will not, if it occurs after a space or at the beginning of the string.

  guenther



Hi Guenther,

Thanks for your explanation. I've been used to add \b on every rule.

May I replace it with (\W|^) to get nearly the same effect?

Like /(\W|^)\\\/ista\b/i

--
Samuel Krieg

Reply via email to