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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация