On Fri, Dec 07, 2001 at 04:35:11PM -0500, Maurice Reeves wrote:
> not quite.  \w matches _ also, and he didn't have
> that in his list.
> 
> how about
> $searchstring =~ /^[a-z0-9]+/i;

I'm not sure why you're both anchoring the pattern.  He didn't specify it
had to start with a letter or number, he said it needs to be in the string.

    $searchstring =~ /[a-z0-9]/i;


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

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

Reply via email to