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

Dmitry Kosovets
Dmitry Kosovets used Ask the Experts™
on
Hello!
Please, help, what special symbols are used in Perl Regex's? Especially I am interested if backtick (`) is used.
Thanks in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
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

Author

Commented:
Thanks!
ozo
Most Valuable Expert 2014
Top Expert 2015

Commented:
" 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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial