P is for Practical | |
PerlMonks |
Re: Re: Re: Is there a way I can substitute for ":" except when it is preceded by a letter Cby MrNobo1024 (Hermit) |
on Aug 17, 2002 at 02:35 UTC ( [id://190813]=note: print w/replies, xml ) | Need Help?? |
That's not quite right, the * makes it match even if there's 0 C's, turning all colons into apostrophes, not just the intended ones
fixes that, but won't work if there is multiple colons in a row. A negative lookbehind is probably the only way to do this properly. --MrNobo1024
In Section
Seekers of Perl Wisdom
|
|