Basic HTML version of Foils prepared
Sept 20 97
Foil 43 Quotemeta() and \Q .. \E Construct
From
Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 --
Sept 20 97
.
by
Geoffrey C. Fox,Nancy McCracken,Tom Scavo
1
quotemeta("string") protects all regular expression metacharacters
[ab] matches a or b in a regular expression
quotemeta("[ab]") becomes \[ab\] and matches string [ab]
2
quotemeta("string") is equivalent to "\Qstring\E" where "string" is interpolated before protection
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sun Apr 5 1998