You are here: Re: Regular expression - match string containing a but not a and b « PHP Programming Language « IT news, forums, messages
Re: Regular expression - match string containing a but not a and b

Posted by P Pulkkinen on 02/06/07 14:50

<gfrith@gmail.com> kirjoitti
viestiss�:1170767420.371202.162700@q2g2000cwa.googlegroups.com...
> Hi,
> A quick regex question which I've worked around for the time being,
> but would like an answer to if anyone can help.
> I want to match on all strings which end _id, but not those ending
> row_id.
> Some sample strings:
> row_id
> parent_id
> person_id
> person

Somebody answered from the regex point of view, which is not my expertise,
but i ask: do you really need regex to do this, especially if you feel they
are difficult? Can you just applie string finding functions? End is "_id"
but end is not " row_id", that makes two conditions, or do i miss something?

 

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

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