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 searches a string for pattern and returning true while pattern exists, otherwise false. A backslash(“\”) is used to escape a […]
