basics of escaping at least *anything* won't do any harm

php > echo preg_quote('<font style="font-size:0px">[^<]*<');
\<font style\="font\-size\:0px"\>\[\^\<\]\*\<

Well, escaping the [^<]* part certianly will do harm, since it will turn it from a group match into individual characters that don't exist in the text to be matched.

But I've tried escaping the standaline characters like <, =, :, etc, and that doesn't help. I have many regex patterns without these escaped, so I'm pretty sure they work as expected normally, so should here too.

Reply via email to