Match a backslash with preg_match() in PHP

Sometimes you need to match a backslash with preg_match, but this is not as straightforward as you might first think! The preg_match() function is nothing but a perl-compatible regular expression pattern match. The preg_match() function […]