This is a statement from JavaScript regular expression description:
^has a different meaning when it appears as the first character in a character set pattern.
For example,/[^a-z\s]/matches the'3'in"I have 3 sisters".
How does ^ match 3?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the
^opearator here means negation, it means that match any character which is not a space or alphabet(a-z). It will still match capital alphabets(A-Z)You can refer this url: http://www.regular-expressions.info/reference.html for more information on regular expressions