Think about Loose Coupling | |
PerlMonks |
Another Regular Expressionby akm2 (Scribe) |
on Jan 08, 2005 at 18:28 UTC ( [id://420563]=perlquestion: print w/replies, xml ) | Need Help?? |
akm2 has asked for the wisdom of the Perl Monks concerning the following question: Ok, I admit it... I suck at Regular Expressions. There, I said it. After pretty much 2 pots of coffee, I still can't get it right. Therefore I come asking for wisdom... I have a string like: "I have a 15" latter and a 6" foot arm." I need to change it to: "I have a 15" latter and a 6" foot arm." In other words I need a regular expression that will not touch the quotation marks at the start or end of the string but will change all the ones in-between. Can anybody help me, please? Andrew Kenton Mitchell
Back to
Seekers of Perl Wisdom
|
|