Based on the problem description, "bbbba" should be a match for ".aa": repeat "." for 4 times to match "bbbb", omit "a*", and then add "a". My solution returns true for this case but the judge reports that it should be false.
That does match as you expect: http://rubular.com/r/c6OxwoLHJ6
I'm not sure why the judge would think otherwise.
Which problem was this for?
Thank you for answering my question. The problem I was trying to solve is
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.