Nevermind, I think I got it. regex.h's thing for whitespace
doesn't
like the s character, but since I only needed space
characters, I
could just put a space where I wanted it. I'm putting this
up here so
anyone can get the answer:
^([A-z][A-z0-9_]*[&\*]?)([ ]+)([A-z_][A-z0-9_]*)$
will match any
variable type in C and C++.
|