I need a regexp which matches to the sting which
- starts with $
- ends with $
- contains some alphabetical characters (not defined how many)
e.g.
$ABC$ # ok
$ABCDEF$ # ok
$ABC # not ok
AC$ # not ok
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.
This will match 0 or more characters in between dollar signs. If you want to match one or more, use
^\$[A-Za-z]+\$$.This could probably be written with fewer characters, but I have no indication of what regex engine you’re using, so I can’t use any specific features.