David Buddrige wrote:
> 
> Alex Cheung Tin Ka wrote:
> >
> > Could anyone tell me how to make a regular expression for match a string only 
>[a-z0-9] ?
> 
> [a-z0-9]+ will match a sequence of characters containing one or more of
> the set [a-z0-9].
> 
> If you want to match a line of characters that contains NOTHING BUT
> [a-z0-9] then you could use:
> 
> ^[a-z0-9]+$
> 
> If you want to match a sequence of characters that must start with [a-z]
>  and contain any number of [a-z0-9] thereafter, you could use the regex:
> 
> [a-z][a-z0-9]*

And if you want to match all lowercase characters in the current
character set:

^[[:lower:]\d]+$



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to