You are here: Re: regex question - can't get unclosed quote marks inside of HTML tags « PHP Programming Language « IT news, forums, messages
Re: regex question - can't get unclosed quote marks inside of HTML tags

Posted by dennis.alund on 12/05/05 21:56

This isn't really a solution to your problem... just a hint of what's
wrong; a quote is also a character... i.e. in the expression (.*) will
also match a quote.
What you want to look into is negative lookarounds; (?<!x)y matches an
'y' not preceeded by a 'x' and x(?!y) matches a 'x' not followed by an
'y'.
But if you're not a regexp-ninja I'd recommend you to find an easier
solution... negative lookarounds aint trivial.

 

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

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