tips and tricks for movable type

escaping characters
September 21, 2002

Just a little cheatsheet on what characters should be escaped in Perl, found here.

"These are the characters that are given special meaning within a regular expression, which you will need to backslash if you want to use literally:

. * ? + [ ] ( ) { } ^ $ | \

Any other characters automatically assume their literal meanings."

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 0
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/86)