What special symbols are used in Perl Regex's? Especially I am interested in backtick.

Hello!
Please, help, what special symbols are used in Perl Regex's? Especially I am interested if backtick (`) is used.
Thanks in advance.
Dmitry KosovetsAsked:
Who is Participating?
 
Rgonzo1971Commented:
Hi,
here are the chars to be escaped
Usages      Characters Needing Escaping
Single Quoted Strings      
'    - apostrophe/single quote
\    - backslash
Double Quoted Strings      
"    - double quote
$    - dollar
@    - at symbol
\    - backslash
Regular Expressions      
^    - caret
$    - dollar
.    - period/full stop
?    - question mark
*    - asterisk
+    - plus
[    - left square bracket
(,)  - parentheses/round brackets
|    - pipe/vertical bar
\    - backslash
When they can be confused with a range:
{,}  - curly brackets
When entered directly into regex:
@    - at symbol
/    - forward slash
Character Classes      
[,]  - square brackets
\    - backslash
Unless the first or last character in class:
-    - dash or hyphen
If the first character in class:
^    - caret

refer to http://www.dispersiondesign.com/articles/perl/perl_escape_characters

REgards
0
 
Dmitry KosovetsAuthor Commented:
Thanks!
0
 
ozoCommented:
" and ' would only need to be escaped if they were used as delimiters.
Any other characters used to delimit your regex would also need to be escaped.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.