Print Page | Close Window

RegEx help?

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=4661
Printed Date: 27 November 2025 at 6:47pm


Topic: RegEx help?
Posted By: Guests
Subject: RegEx help?
Date Posted: 01 December 2004 at 12:15pm

Can anyone give me a hand at a RegEx string to detect something similar to the following?

----345674158437272--

The string of numbers varies from 11 to 15 digits, but the dashes remain constant




Replies:
Posted By: keizersozay
Date Posted: 01 December 2004 at 1:04pm
((----\d{11,15}--))


Posted By: keizersozay
Date Posted: 01 December 2004 at 1:07pm

or this

((----[0-9]{11,15}--))



Posted By: Guests
Date Posted: 01 December 2004 at 2:15pm

Ok, thanks.  It looks like I just had extra "(" and ")"'s in mine.

I'll give your suggestion a try.




Print Page | Close Window