25 Jul
2011
25 Jul
'11
7:53 a.m.
Oliver Schröder wrote:
This piece of code removes all backslashes from the input string, which gives incorrect results when parsing strings for regular expressions with excaped characters.
*Why*? Do you have an example?
On the other hand, I'm not sure if it breaks anything else. Is there a reason to remove backslashes on purpose? Or is this really a bug?
The function gets a token from a string. The token can is *parsed*, which means interpreting backslashes. They're not "removed", they're parsed and understood. So yes, there's a reason to do this. Alan DeKok.