Re: [PHP] simple regex query

2006-04-06 Thread Paul Scott
On Thu, 2006-04-06 at 15:36 +0200, Jochem Maas wrote: > > > > Been tryin to figure out regex and have found some tutorials but some > > have made things clear and others have confused me. > > We are busy building up a library of commonly used regex's on a wiki, check it out at http://fsiu.uwc.a

Re: [PHP] simple regex query

2006-04-06 Thread Joe Henry
On Thursday 06 April 2006 6:19 am, Angelo Zanetti wrote: > Hi guys > > Been tryin to figure out regex and have found some tutorials but some have > made things clear and others have confused me. > > Anyway for a simple query, if I just wanted to check that a variable has > only text and numeric cha

Re: [PHP] simple regex query

2006-04-06 Thread Robin Vickery
On 06/04/06, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > > Anyway for a simple query, if I just wanted to check that a variable has only > text and numeric characters would I do something like this > (i want it to fail if it finds a symbol eg: + - { " etc...): > > echo "REG result: " . preg_match

Re: [PHP] simple regex query

2006-04-06 Thread Angelo Zanetti
Jochem Maas wrote: Angelo Zanetti wrote: Hi guys Been tryin to figure out regex and have found some tutorials but some have made things clear and others have confused me. Anyway for a simple query, if I just wanted to check that a variable has only text and numeric characters would I do so

Re: [PHP] simple regex query

2006-04-06 Thread Jochem Maas
Angelo Zanetti wrote: Hi guys Been tryin to figure out regex and have found some tutorials but some have made things clear and others have confused me. Anyway for a simple query, if I just wanted to check that a variable has only text and numeric characters would I do something like this (i