C-Command Software Forum

Regular Expressions

Are there any tutorials for the RegEx matches (specific to SpamSieve)? I have the Mastering Regular Expressions book.

I’m confused by the lack of / / around the expression. For instance I want to filter out: ACAI Acai acai

I think /acai/i should do it, but it doesn’t seem to work.

Any advice?

The “/ /” is not part of the regular expression; it’s only necessary in some programming languages to signify that the text in between is a regular expression. With SpamSieve, you enter only the regular expression itself. Likewise, you can leave off the “i” because SpamSieve regexes are case-insensitive by default.

So in this case you would enter just:


However, for this example a regex is not required; you could also use Contains instead of Matches Regex.