Reply to Re: a regular expression inquiry

Your name:

Reply:


Posted by vito on 06/10/06 00:59

> Yeah thats it.
>
> (.+)\s{2}
>
> Is a greedy match, it will match to the last two spaces it finds and
> not the first.
> Adding a ? after the brackets make it a non greedy match.
>
> (.+)?\s{2}
>
> Tim
>

thanks but it seems it doesn't work. adding one more ? at the end also
helps nothing. :(

"/DEF=(.+)?\s{2}?/"

[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

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