Write the regular expression that will match the following string pattern descriptions.
A space character at the beginning of a line
Upper case vowel
one and more lines with a length of exactly 80 characters
A single character that cannot be an alpha or a digit
A dollar sign character ‘$’ at the end of the line
Answer 1
*************
^\s* //zero or more whitespace characters
Answer 2
************
^[AEYIUO]+$ // for only vowels
Answer 3
**************
/^[a-zA-Z]{80}$/
Answer 4
************
^(?=.*[a-zA-Z].*)([a-zA-Z0-9]+)$
Answer 5
**************
".*\$$"
if you have any doubt then please ask me without any hesitation in the comment section below, if you like my answer then please thumbs up for the answer, before giving thumbs down please discuss the question it may possible that we may understand the question in a different way and I can edit and change the answers if you argue, thanks :)
Get Answers For Free
Most questions answered within 1 hours.