Thread Zeichenfolge ersetzen
(5 answers)
Opened by chmod777 at 2012-12-06 05:42
Dafür nimmst Du einen negativen Lookbehind:
Code: (dl
)
$string =~ s{(?<! url\.com)/lib/}{http://url.com/lib/}gx; Last edited: 2012-12-06 07:13:09 +0100 (CET) Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"
|