RE: [PHP-WIN] Reg Ex help

2005-01-13 Thread Randy Clamons
; From: "Wagner, Aaron" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], php-windows@lists.php.net > Date: Thu, Jan-13-2005 1:31 PM > Subject: RE: [PHP-WIN] Reg Ex help > > couldn't you use > > is_string ( mixed var ) > > aaron > > > -Origi

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread Jason Barnett
[EMAIL PROTECTED] wrote: if (preg_match("/[a-z0-9]+/i"),$str) So what denotes the end of the reg ex here? (if the '/' at the begin identifies the start? Tryst Surely there is a manual page somewhere for "Perl Compatible Regular Expressions" :) Hint: actually, never mind, it's worth making you

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread trystano
>if (preg_match("/[a-z0-9]+/i"),$str) So what denotes the end of the reg ex here? (if the '/' at the begin identifies the start? Tryst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Reg Ex help

2005-01-13 Thread Wagner, Aaron
couldn't you use is_string ( mixed var ) aaron > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: January 13, 2005 10:18 > To: php-windows@lists.php.net > Subject: [PHP-WIN] Reg Ex help > > > > I might be an idiot... > > I am trying to do a simple che

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread Leif Gregory
Hello Ron, Thursday, January 13, 2005, 8:17:51 AM, you wrote: R> I am trying to do a simple check to make sure a string contains at R> least an alphanumeric character before I print the string. How can R> I do this? if (preg_match("/[a-zA-Z0-9]+/"),$str) { echo $str; } There may be a more e