Thread regex - Probleme! (19 answers)
Opened by Weman at 2005-09-19 14:54

renee
 2005-09-22 17:52
#58194 #58194
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
alternativ
Code: (dl )
$word = quotemeta($word);


perldoc -f quotemeta:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
     quotemeta EXPR
quotemeta
Returns the value of EXPR with all non-"word"
characters backslashed. (That is, all characters
not matching "/[A-Za-z_0-9]/" will be preceded by a
backslash in the returned string, regardless of any
locale settings.) This is the internal function
implementing the "\Q" escape in double-quoted
strings.

If EXPR is omitted, uses $_.
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 regex - Probleme!