If you're using VS2008, you can install the feature pack[^] and get regular expressions in the standard libraries[^]. Otherwise, do what the other answers suggest and use Boost - either Boost.Regex[^] or (if you're feeling adventurous) Boost.Xpressive[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p