Use of regular expression: From the beginning to the end


#1

Hi guys. Please, I need someone to assist me with the code on the following link: RegExp in Javascript
Here's a snapshot of the code with my RegEx on line 12


#2

I don't think we wish to allow just any character after the a so the dot can go. Likewise, there is no limit on how many times the class [b-y] can appear, so the asterisk should be on the other side of it. Otherwise your regex looks good.


#3

Thanks a million @mtf. Your suggestion worked.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.