cooli0 has asked for the wisdom of the Perl Monks concerning the following question:
I have a text like:
Blah blah http://somelink.com/ddd <a href="http://somelink.com/ddd" class="someclass" other_attributes>Check out http://somelink.com/ddd</a> blah blah http://somelink.com/ddd blahblah
Could someone point me on how to replace (and if its even possible) somelink.com, but, without replacing it inside href ?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with regular expression
by choroba (Cardinal) on Apr 14, 2010 at 13:34 UTC | |
by cooli0 (Initiate) on Apr 14, 2010 at 13:53 UTC | |
|
Re: Need help with regular expression
by Anonymous Monk on Apr 14, 2010 at 13:28 UTC |