Thread Regex: Wenn Capture Group leer dann 0 ansonten 1... (2 answers)
Opened by Lebewesen at 2012-04-30 12:14

pq
 2012-04-30 12:23
#157959 #157959
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
so?
$var=~s/(.*?)!\s*([+-]?)!(.*)/"$1;" . (length $2 ? 1 : 0 ) . ";$3"/eg;
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Regex: Wenn Capture Group leer dann 0 ansonten 1...