regular expressions in c++

How do I use the regular expressions in c++?

Posix defines regcomp(), regexec(), and regerror() so you should use those for new programs. You may also find some older subroutines on your box which you should ignore.

Also look at fnmatch() and glob() which match strings and pathnames to expressions that use shell-like wild card characters.

This is a slight digression, but the regular expression functions mentioned are only available in Unix.

Under windows the function names will change and behave a bit differently.

Sorry, can't give you any more details than that because I am only passing on second hand experience of a windows programmer who was trying to port some Unix routines onto Windows.

MBB