Thread Quantifier follows nothing in regex? (2 answers)
Opened by Gast at 2007-03-01 18:41

renee
 2007-03-01 18:52
#74747 #74747
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Mach aus
Code: (dl )
$old =~ /$readline/
das hier
Code: (dl )
$old =~ /\Q$readline\E/


Damit werden (RegEx-)Sonderzeichen, die in $readline stehen escaped...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Quantifier follows nothing in regex?