Thread regex: newbie frage zum ersetzen (s///)
(14 answers)
Opened by Lutz at 2006-01-25 19:11
[quote=Relais,25.01.2006, 18:49]
Code: (dl
)
s/(\d+)-(\d+)-(\d+)/sprintf("%02d-%02d-%04d", $1,$2,$3)/eg; Zwischen Thread lesen, Testskript schreiben, testen und Antwort mit Beispiel posten sollte ich vielleicht nochmal aktualisieren, damits net doppelt abgeschickt wird :-) What is a good module? That's hard to say.
What is good code? That's also hard to say. One man's Thing of Beauty is another's man's Evil Hack. |