Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: regex needed

by OM_Zen (Scribe)
on Mar 14, 2003 at 16:19 UTC ( #243098=note: print w/replies, xml ) Need Help??


in reply to regex needed

Hi ,

This is one way to do this :

if($_ =~ /^TEST:/){print $';} __END__ foo


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243098]
help
Chatterbox?
[LanX]: whats the best way to restrict a MySQL Text Column to alphanums + underscore ?
[LanX]: CHARACTER SET?
[chacham]: ought to be a check constraint.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-03-30 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (360 votes). Check out past polls.