Thread regex: newbie frage zum ersetzen (s///) (14 answers)
Opened by Lutz at 2006-01-25 19:11

bloonix
 2006-01-25 20:05
#62246 #62246
User since
2005-12-17
1615 articles
HausmeisterIn
[Homepage]
user image
[quote=Relais,25.01.2006, 18:49]
Code: (dl )
s/(\d+)-(\d+)-(\d+)/sprintf("%02d-%02d-%04d", $1,$2,$3)/eg;
[/quote]
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.

View full thread regex: newbie frage zum ersetzen (s///)