In single-quoted literals, escaping \ is optional if it's not followed by \ or the string delimiter.
$x = 'a\b'; print("$x\n"); $x = 'a\\b'; print("$x\n");
a\b a\b
In reply to Re^3: Regex problem
by ikegami
in thread Regex problem
by siraj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |