I'm wondering why some of the functions manually quote meta characters in the regex rather than using preg_quote()?
//quote charlist for use in a characterclass $charlist = preg_replace('!([\\\\\\-\\]\\[/^])!','\\\${1}',$charlist);
Log in to post a comment.