I'd go with `([a-zA-Z_$][\w$]*)` to shorten those a little