You are here: Re: Matching a backslash-escaped character « PHP Programming Language « IT news, forums, messages
Re: Matching a backslash-escaped character

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация