Print Page | Close Window

Regular Expressions (RegEx)

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=3249
Printed Date: 02 May 2025 at 10:41am


Topic: Regular Expressions (RegEx)
Posted By: Guests
Subject: Regular Expressions (RegEx)
Date Posted: 16 March 2004 at 5:32am

Hi,

I am trying to use the regular expressions on my server.

When I type the keywords into the RegEx tester they work fine but if I put then in the keywords blacklist they stop working and give an error.

Any ideas.

Nathan...

 

The keywords are as follows:

(?i)v(.{0,3})i(.{0,3})a(.{0,3})g(.{0,3})r(.{0,3})a
(?i)v(.{0,3})p(.{0,3})r(.{0,3})x
(?i)u(.{0,3})n(.{0,3})s(.{0,3})u(.{0,3})b(.{0,3})s(.{0,3})c(.{0,3})r
(?i)p(.{0,3})r(.{0,3})e(.{0,3})s(.{0,3})c(.{0,3})r(.{0,3})i(.{0,3})p
(?i)u((.{0,3})n(.{0,3})i(.{0,3})v(.{0,3})e(.{0,3})r(.{0,3})s(.{0,3})i
(?i)d(.{0,3})i(.{0,3})p(.{0,3})l(.{0,3})o(.{0,3})m
(?i)l(.{0,3})o(.{0,3})s(.{0,3})e(.{0,3})w(.{0,3})e(.{0,3})i(.{0,3})g
(?i)s(.{0,3})e(.{0,3})x
(?i)p(.{0,3})e(.{0,3})n(.{0,3})i(.{0,3})s
(?i)p(.{0,3})o(.{0,3})r(.{0,3})n
(?i)i(.{0,3})n(.{0,3})c(.{0,3})e(.{0,3})s(.{0,3})t

and I am getting the following error:

String matching error for ((?i)l(.{0,3})o(.{0,3})s(.{0,3})e(.{0,3})w(.{0,3})e(.{0,3})i(.{0,3}) --and-- E-Zee move quotation) : TRegExpr(comp): ?+*{ Follows Nothing (pos 1)

 




Replies:
Posted By: Desperado
Date Posted: 16 March 2004 at 2:02pm

Are you putting the entire RegEx inside Parens "(RegEx)"  The RegEx test does not require the first and last Paren but the KeyWord entry does.

Regards,

Dan S.



Posted By: Guests
Date Posted: 19 March 2004 at 1:28am

Thanks I'll give it a go.

Nathan...




Print Page | Close Window