in reply to Re: regexp causes segfault
in thread regexp causes segfault
I should clarify that this won't match exactly the same strings as code in the original post, since it always treats a backslash as escaping the following character, so that "'\\'" would be treated as a valid quoted string of a single escaped backslash, whereas the original code would ignore the first backslash and then treat the second backslash as escaping the quote. (And then fail, and backtrack, and do the right thing anyway: "'\\''" would probably be a better example.)
Hugo
|
|---|