OT: Regex question
Chris Stone
cstone at AXINT.NET
Mon Jun 27 22:01:33 IST 2005
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
On Monday 27 June 2005 09:45 pm, Craig Daters wrote:
> My grasp of regex is very rudimentary at best, and I am trying to
> construct an expression that will hit every instance of these kinds of
> lines:
>
> pool-141-154-180-187.wma.east.verizon.net
>
> So in this instance, I would like to know how to construct the instance
> to find anything that starts with "pool" and ends with "verizon.net". I
> don't care what everything else in between might be.
>
pool.+verizon\.net
or probably better:
pool-[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}\.[a-z]+\.[a-z]\.verizon\.net
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list