Reply to Re: Regex for matching a quoted string with possible escape characters

Your name:

Reply:


Posted by John Dunlop on 09/18/05 12:02

Adam Atlas wrote:

> I seek a regular expression, pcre or ereg (it doesn't matter), which,
> given a quoted string (e.g. "foo" => foo) will return the contained
> text, but that will accommodate escaped quote characters within the
> string (e.g. "foo\"bar" => foo"bar).

`"(.*?)(?<!\\\)"`

--
Jock

[Back to original 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

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