I’m not sure if this is the appropriate place for this, but it’s short (and I found it in a JS file):
What does this mean? “\d” is for digits, but “\.” matches all digits and then some, right? Or is “\.” for a literal period? And what is “\-”? Does that mean "look for the literal ‘-’ " or is it a special symbol?
You don’t need to escape the dash if it’s the first character in the character class (the square brackets), otherwise you do (because it indicates a range of characters). And you don’t need to escape the dot in a character class either, only outside it. So you can reduce it to:
Ah, whitespace! As awesome as LOLCODE and Brainf*ck : )