@ felgall
That wouldn't explain the "got past" not being displayed. And it's actually not correct.
Quote:
|
If the regular expression includes the g flag, the method returns an Array containing all matches. If there were no matches, the method returns null.
|
https://developer.mozilla.org/en-US/...s/String/match
And as we hopefully all know: null doesn't have a property 'length', thus erroring out.