Can someone please summarise what this regular expression will do?
ValidationExpression="^[a-zA-Z0-9'.\s\-&\(\)]*$"
Is there any online tools that can summarise this?
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.
^and$are anchors that anchor the epxression to the start and the end of the string.[a-zA-Z0-9'.\s\-&\(\)]is a character class that allows any of the characters inside the[]a-zis a character range (- is the range operator here), meaning all characters from a to z.\sis a whitespace character (space, tab, newline)\(is a literal(,\is for escaping*is a quantifier that allows 0 or more characters inside the character class.That means your regex can match an empty string or a string consisting only of characters from inside your character class.