regex-adventure
regex-adventure copied to clipboard
Quotes adventure: add testcase that checks symbols(+ * =) within the …
…quotation marks.
Hey there,
I was doing the "Quotes" step and I found out that my regex, /("(\w|\s)*")/g
, which does not check symbols within the quotation marks, is passing all the tests. After seeing proposed solution(/"[^"]*"/g
) I figured out that it's better because it checks for symbols too. To aware other people taking this adventure I added test case to check for symbols in "Quotes" step.