Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: RegEx - comments should not matches

by Chief of Chaos (Friar)
on Jul 13, 2004 at 12:13 UTC ( [id://373939]=note: print w/replies, xml ) Need Help??


in reply to Re: RegEx - comments should not matches
in thread RegEx - comments should not matches

Hi,
if I process this, it would not match the
commented line with doWhatEver().
But thanks.
CoC
#!/usr/local/bin/perl -w while (<DATA>) { if ( $_ !~ m{^/[*/]} ) { print $_; } } __DATA__ doApply() // doNotApply() /* doWhatEver() */ Test4()

will show :
huxl:~>./tst.pl doApply() doWhatEver() */ Test4()

Log In?
Username:
Password:

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

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

    No recent polls found