[Mailman-Users] Reg expressions question

Dan Lowe dan at tangledhelix.com
Mon Jul 23 05:26:58 CEST 2007


On Jul 22, 2007, at 9:08 PM, Jason L wrote:

> I don't know much about regex but in my subjects I need to match say
>
> BLAHBLAHBLAH  and anything after it  I tried BLAHBLAHBLAH* but it  
> doesn't seem to work.

"*" means "match 0 or more of the previous item". So in this case,  
you are asking to match "BLAHBLAHBLA" followed by 0 or more of "H", e.g.

BLAHBLAHBLA
BLAHBLAHBLAH
BLAHBLAHBLAHHHHHHHHH

You probably want to try: BLAHBLAHBLAH.*

"." means "anything", so ".*" means "0 or more of anything".

  -dan



More information about the Mailman-Users mailing list