I want to check if the string is not empty (having whitespaces only also counts as empty). How to compose the regular expression in actionscript?
Share
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 pattern should be something like
/^\s*$/(for a single line string);^and$represent the start and end of the line and\s*means match zero or more whitespace characters. For example:Perhaps a simpler way as commenter Alexander Farber points out is to check for any character except a whitespace character, which is matched by
\Sin regex: