Regular Expression String Length Function Cpp Compiler