Shouldn't `[^'\n\t\r]` be `~['\n\t\r]`?