Thread Zeichenfolge ersetzen (5 answers)
Opened by chmod777 at 2012-12-06 05:42

FIFO
 2012-12-06 07:12
#163973 #163973
User since
2005-06-01
469 Artikel
BenutzerIn

user image
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"

View full thread Zeichenfolge ersetzen