Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Regex: Lookahead

by Rodster001 (Pilgrim)
on May 12, 2009 at 15:35 UTC ( [id://763511]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex: Lookahead
in thread Regex: Lookahead

Except that it doesn't work. Because your example is doing the replacement on the second line (like mine). I need it to fail the replacement on the second line (because it already is an html link).

Replies are listed 'Best First'.
Re^3: Regex: Lookahead
by ikegami (Patriarch) on May 12, 2009 at 16:34 UTC
    Did you run it? (Change "$_ =~" to "$_ = q~" first.) It may not do what you want, but contrary to what you claim, it doesn't touch the second line. (Note the /^/m)

Log In?
Username:
Password:

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

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

    No recent polls found