ok, so perhaps you need to match the first letter first exactly and then the rest of the a’s less specifically (with the star). Give it a try on regextester till you get the hang of it…
okay got it i used Aa to pass the test but it shouldnt have passed because the other test says do not match it with a line that has a in it and in the example code they extracted g even after putting in /go*/. i dont get it
The instructions are unfortunately not very clear on the problem. I totally get the disconnect as I faced it as well.
To,possibly, help clarify the instructions…they want you to identify the capital “A” followed by the other ‘a’’ characters that follow.-not simply any "a"s in any random quote.
Maybe that could help.
I feel your pain though my friend.
Happy Coding!
Create a regex chewieRegex that uses the * character to match all the upper and lower "a" characters in chewieQuote. Your regex does not need flags, and it should not match any of the other quotes.
This problem is worded incorrectly.
You do not match all upper and lower 'a’s. You need to match Aa combination which could have any number of additional lower 'a's
So like. Aa, Aaaa, Aaaaaaa, Aaaa you would match.
A{1,3} means minimum number As present is 1, and the max number of As in a row is 3. A{4,8} means minimum number As present is 4, and the max number of As in a row is 8. A{4,} means minimum number As present is 4, and the max number of As in a row is infinite.
A{0,} means minimum number As present is 0, and the max number of As in a row is infinite.
A{0,} and A* are the same thing.
just like A{1,} and A+ are the same thing.