Re: [unclassified] Re[2]: Yet another RegEx question

2005-06-23 Thread Marten Gallagher
 Hello Marten Gallagher,

 \[[0-9]{1,3}\/[0-9]{1,3}\]

 Thanks so much!  Somehow I missed the '{1,3}' parts which made it work
 with more than 1 numeric character!  DUH!  ;-p

I'm impressed - with me - first time I've ever advised on RegEx!!!

-- 
Marten Gallagher
Annery Kiln Web Design
www.annerykiln.co.uk
Using The Bat! 3.5.25
with POPFile 0.22.1
on Windows XP 5.1 




Current version is 3.5.25 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Yet another RegEx question

2005-06-23 Thread Mark Partous

Hello Marten,

Thursday, June 23, 2005, 7:09:53 PM, you wrote:

MG I'm impressed - with me - first time I've ever advised on RegEx!!!

On top of that, you made someone buy RegexBuddy!  :-)

-- 
Best Wishes,
Mark
using The Bat! 3.5.30





Current version is 3.5.25 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Yet another RegEx question

2005-06-22 Thread Marten Gallagher
 Hello tbudl,

 OK, a RegEx question:

 I am receiving hundreds of spam messages that contain the following
 text, with the numeric part in the brackets varying endlessly -

 Re: [1/53]: Reday 2 Odrer olinne

 How do I pattern match the [1/53] and all the endless numeric and
 text variations to send them expeditiously to my spam folder?  I've
 read the help files and just can't seem to get it right.  The brackets
 and the numbers combination vary, with up to 3 numeric characters
 either side of the forward slash.

\[[0-9]{1,3}\/[0-9]{1,3}\]

Match the character [ literally «\[»
Match a single character in the range between 0 and 9 «[0-9]{1,3}»
   Between one and 3 times, as many times as possible, giving back as needed 
(greedy) «{1,3}»
Match the character / literally «\/»
Match a single character in the range between 0 and 9 «[0-9]{1,3}»
   Between one and 3 times, as many times as possible, giving back as needed 
(greedy) «{1,3}»
Match the character ] literally «\]»


Created with RegexBuddy

I can recommend:

http://www.regexbuddy.com/

and

http://www.regular-expressions.info/

-- 
Marten Gallagher
Annery Kiln Web Design
www.annerykiln.co.uk
Using The Bat! 3.5.25
with POPFile 0.22.1
on Windows XP 5.1 




Current version is 3.5.25 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Yet another RegEx question

2005-06-22 Thread Spike
Hello Marten Gallagher,

 \[[0-9]{1,3}\/[0-9]{1,3}\]

Thanks so much!  Somehow I missed the '{1,3}' parts which made it work
with more than 1 numeric character!  DUH!  ;-p

One of these days I may 'get' 50% of the RegEx syntax.  But then again
I flunked both typing and basic programming in 1972.

-- 
Warmest tropical wishes,
Spike

Spit Happens - on a babys bib in Starbucks

/\   ASCII Ribbon Campaign - Against HTML Mail
\ /   If it aint a webpage it shouldn't be HTML. 
 XSay NO! to bloatmail - ban HTML mail!
/ \   Ask Spikey, he hates everything (HTML),
  especially the new AOL implementation!

--
Using TheBat! v2.12.00 hamstrung by Windows XP PRO
5.1 Build 2600 Service Pack 2 - on a Toshiba
Satellite P75-S5621 / P4-3.2GHz with 2GB RAM /
200GB HDD (100GB X2)
--
   



Current version is 3.5.25 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Yet another RegEx question

2005-06-21 Thread Spike
Hello tbudl,

OK, a RegEx question:

I am receiving hundreds of spam messages that contain the following
text, with the numeric part in the brackets varying endlessly -

Re: [1/53]: Reday 2 Odrer olinne

How do I pattern match the [1/53] and all the endless numeric and
text variations to send them expeditiously to my spam folder?  I've
read the help files and just can't seem to get it right.  The brackets
and the numbers combination vary, with up to 3 numeric characters
either side of the forward slash.

-- 
Warmest tropical wishes,
Spike

/\   ASCII Ribbon Campaign - Against HTML Mail
\ /   If it aint a webpage it shouldn't be HTML. 
 XSay NO! to bloatmail - ban HTML mail!
/ \   Ask Spikey, he hates everything (HTML),
  especially the new AOL implementations!

--
Using TheBat! v2.12.00 hamstrung by Windows XP PRO
5.1 Build 2600 Service Pack 2 - on a Toshiba
Satellite P75-S5261 / P4-3.2GHz with 2GB RAM /
200GB HDD (100GB X2)
--



Current version is 3.5.25 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


RegEx question

2002-08-18 Thread Sergey Uvarov

Dear tbudl,

 I want to extract one HTML string naving particular color.
 How can i do this?

 Problem is, that this RegEx stops on *last* /P sequence, not on
 first. And this RegEx gives all text within first 80 and last
 /P.

,- [  ]
| %SETPATTREGEXP='(80)(.*s?)(/P)'%REGEXPBLINDMATCH='%COMMENT'%SUBPATT='2'
`-

But I need text *between*  80 and  first /P after 80!

-- 

Best regards,
Sergey Uvarov

mailto:[EMAIL PROTECTED]

TheBat version :1.62/Beta1,
Running at NT 5.0, Build 2195 Service Pack 2.



 Current version is 1.61 | Using TBUDL information: 
 http://www.silverstones.com/thebat/TBUDLInfo.html



Re: RegEx question

2002-08-18 Thread Peter Palmreuther

Hello Sergey,

On Sunday, August 18, 2002 at 8:11:30 PM you [SU] wrote (at least in
part):

SU ,- [  ]
SU | %SETPATTREGEXP='(80)(.*s?)(/P)'%REGEXPBLINDMATCH='%COMMENT'%SUBPATT='2'
SU `-

I don't know what 's' in this string should match:

(.*s?) ... make is (.*?) and it should do it's job.
-- 
Regards
Peter Palmreuther
(The Bat! v1.61 on Windows 2000 5.0 Build 2195 Service Pack 1)

CanaDOS:  Yer sure, eh?  (B)eauty!  (N)o way!  (T)ake off!



 Current version is 1.61 | Using TBUDL information: 
 http://www.silverstones.com/thebat/TBUDLInfo.html



Re: Filter question (was: Regex question)

2001-03-20 Thread ztrader

On Monday, March 19, 2001, 11:09:31 PM, Thomas wrote:

z This structure is sometimes prefixed with another word or two as:

z [pre1.. pren] Startword stuff in the middle Endword

T No prob, as long as both keywords are in the subject somewhere, it'll
T work.

Thanks for the suggestion. Actually, the reason for the regex is that
I want to filter ONLY if Startword is the FIRST word and Endword is
the LAST word. If they are in any other positions, or if one is
missing, the message is not filtered. The positions are important.

It is actually a bit more complex - Startword and Endword can be one
of about 3 words each. I first wanted to see if the pre part could be
eliminated, and Startword recognized as the "start".

Thanks,

ztrader

-- 
__
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

You are subscribed as : archive@jab.org





Regex question

2001-03-19 Thread ztrader

I'd like to filter on a subject line. The structure is:

Startword stuff in the middle Endword

This structure is sometimes prefixed with another word or two as:

[pre1.. pren] Startword stuff in the middle Endword

The 1-3 words in the beginning are always surrounded by square
brackets [ ].

What I'd like to do is ignore the brackets, and any words in the
brackets, and still be able to filter on Startword and Endword. How
can I do that?

T much IA,

ztrader

-- 
__
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]




Filter question (was: Regex question)

2001-03-19 Thread Thomas

Hi ztrader,

On Mon, 19 Mar 2001 20:28:14 -0800GMT (20/03/2001, 12:28 +0800GMT),
ztrader wrote:

z Startword stuff in the middle Endword

In the filter, create two rules (on the rules tab):

first one: Startword / Location: Subject / Presence: Yes
second one: Endword / Location: Subejct / Presence: Yes

If they both under the first tab, they have to be both true for this
filter to catch. It would also work if someone wrote: "blaba endword
[juhu] startword andson", but that should not happen too often, I
hope.

z This structure is sometimes prefixed with another word or two as:

z [pre1.. pren] Startword stuff in the middle Endword

No prob, as long as both keywords are in the subject somewhere, it'll
work.

-- 

Cheers,
Thomas.

Moderator der deutschen The Bat! Beginner Liste. Anmeldung unter:
[EMAIL PROTECTED]  

Message reply created with The Bat! 1.51
under Chinese Windows 98 4.10 Build 1998  
on a Pentium II/350 MHz.



-- 
__
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]