Subject: Re: Problem regarding regular expression
From: Victor Deryagin <vderyagin gmail.com>
Date: Sun, 21 Nov 2010 15:04:35 +0900
References: 374114
In-reply-to: 374114
> i could barely understand why the existence of $ makes such a
> difference.
> any help?
/^[a-z 0-9]*$/ must match the whole string (and it can't due to
uppercase 'W'
/^[a-z 0-9]*/ may match only empty string at the beginning (and it does)