Write a regular expression that matches only the following::
CDEF 88.3 QP or ABCD 55 AM or AEIO 100.2 FM or QWER 100 AM
In other words:
starts with four letters
followed by a space
followed by two or three digits,
followed by (optionally) a decimal and another digit
followed by a space
terminated with either AM or FM
Comments
Leave a comment