|
Posted by Simon Stienen on 04/03/07 01:36
On 2007-04-02 21-13-04, Puzzled wrote:
> I wrote:
>
>>I'm having an impossible time figuring out how to match an escaped
>>char. It shouldn't be this difficult, so obviously I'm doing
>>something dumb or not doing what I think I'm doing.
>>[clip]
>
> I solved it. It's amazing how simply giving up and posting a question
> can sometimes unlock one's tired mind enough to produce the solution.
> Now if only there were a way to do the unlocking without the posting.
> *sigh*
In case it didn't work out (it's amazing, how easily we think something
works, while in fact it doesn't, when we are tired :P)... Matching a
""-delimited string that may contain escape sequences (including \") is:
"([^\\"]|\\.)*"
And btw.: Next time you find the answer yourself *after* posting the
question: Please share it, as the newsgroups are also indexed by searching
index and therefor threads might be found by others just looking for what
you were doing.
Regards
[Back to original message]
|