I want to replace all instances of 

~someString~ 

in a larger string with 

<i>someString</i>


I tried the following statement:

$string =~ s/\~.*\~/<i>.*<\/i>/g;

But what I get is a bunch of the following as the replacements:

<i>.*</i>

How do I retain the original .* in the replacement?

Thanks


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to