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

Re^2: Regexp: Match anything except a certain word

by ikegami (Patriarch)
on Apr 21, 2006 at 19:21 UTC ( [id://544970]=note: print w/replies, xml ) Need Help??


in reply to Re: Regexp: Match anything except a certain word
in thread Regexp: Match anything except a certain word

Close. You missed the "unless they already have a target" condition specified by the OP. For example,
<a href="http://example.com" target="foo">here</a>
shouldn't change, but it becomes
<a href="http://example.com" target="_target">here</a>

Update: Added example.

Log In?
Username:
Password:

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

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

    No recent polls found