When using the escape_regex function, the string '\.' gets resolved to '\\.' instead of '\\\.', that is the backslash is not being escaped. Testing with just a backslash and just a dot separately returns the correct result, but following a backslash with a dot causes this inconsistency.
Log in to post a comment.