Print Page | Close Window

RegEx help, What am I missing here?

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4720
Printed Date: 05 February 2025 at 8:04am


Topic: RegEx help, What am I missing here?
Posted By: CyberBob
Subject: RegEx help, What am I missing here?
Date Posted: 09 December 2004 at 11:51am

I'm trying to block anyone putting spaces between letters like (m o r t g a g e) or (v.i.a.g.r.a).

Now so far this is simple but what if they don't follow the pattern and I need a greedy wildcard. Example is (m o rtg a ge) or (v.i.agr.a)

I've tried this and it's test's ok in the Regex test but when I place in in keywords.txt it doesn't work?

\Am\s*o\s*r\s*t\s*g\s*a\s*g\s*e\Z

This should pick up any space between letters or the actual word mortgage

or I've tried

\Av\.*i\.*a\.*g\.*r\.*a\.*\Z

This should pick up a "." between letters or not. Any variation of viagra, v.ia.gr.a viagr.a etc.

What am I missing?

Thanks in advance,

 

Bob




Print Page | Close Window