Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Email content filter and RegEx!

by monktim (Friar)
on Aug 12, 2003 at 13:57 UTC ( [id://283178]=note: print w/replies, xml ) Need Help??


in reply to Email content filter and RegEx!

Does a tag always follow the number? This might work.
use strict; use warnings; while (<DATA>) { print "$_"; if ($_ =~ /\d{7}</) { print "\tMATCH\n"; } else { print "\tNO MATCH\n"; } } __DATA__ <SPAN class=3D319263020-11082003>Test Hello</SPAN> <SPAN class=3D319263020-11082003>1234567</SPAN>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://283178]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found