Simple Regex for Alpha-Numerics?

Simple Regex for Alpha-Numerics?

am 03.11.2007 23:14:32 von Bucky Kaufman

I'm doing a check for only alpha-numerics, but I wanna try it with a regex.
Something like this:

$bReturn = is_alphanum($sString).

Can somebody help me do this with regular expressions?

Re: Simple Regex for Alpha-Numerics?

am 04.11.2007 00:23:33 von zeldorblat

On Nov 3, 6:14 pm, "Sanders Kaufman" wrote:
> I'm doing a check for only alpha-numerics, but I wanna try it with a regex.
> Something like this:
>
> $bReturn = is_alphanum($sString).
>
> Can somebody help me do this with regular expressions?

Any particular reason you really need a regex? Why not use this:

Re: Simple Regex for Alpha-Numerics?

am 04.11.2007 01:40:44 von Bucky Kaufman

"ZeldorBlat" wrote in message
news:1194132213.720935.66780@22g2000hsm.googlegroups.com...
> On Nov 3, 6:14 pm, "Sanders Kaufman" wrote:
>> I'm doing a check for only alpha-numerics, but I wanna try it with a
>> regex.
>> Something like this:
>>
>> $bReturn = is_alphanum($sString).
>> Can somebody help me do this with regular expressions?
>
> Any particular reason you really need a regex? Why not use this:
>

Well *&#()) me in my ()*&#$)*!!!!
You wouldn't believe the dumbass string looping I've done trying to do that
kinda thing.

Thanks!!