Thread Regex: Wenn Capture Group leer dann 0 ansonten 1...
(2 answers)
Opened by Lebewesen at 2012-04-30 12:14
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: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |