Regex should work but why isn't it?