Hi Bob and everyone else,

Many thanks for the tip and for pointing me into the correct direction!

Kris


> > I want to replace every "[LINK='page.html']" with <a
href='page.html'>
> > I just want to search for [LINK= and the matching ] and just leave
> > the text in between. Is this possible using just regular
expressions?
> 
> The general idea is to match text in capturing parens and then
> refer to that text using $1, $2, etc. in the replacement expression:
> 
>    s/X(.*)X/Y$1Y/;    # changes "Xfoo barX" to "Yfoo barY"
> 
> perldoc perlre (search for "backreference") for all the poop.

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to