Home > Articles > Programming > C/C++

  • Print
  • + Share This
From the author of A Few More Words

A Few More Words

There are a few issues in regular-expression usage I haven't covered yet. One such issue is case sensitivity. It's possible to turn case sensitivity on or off, and of course that will affect the results. Another issue is that of exceptions. If you specify an operation that violates syntax, an exception is thrown at runtime and your program must deal with it. (For example, referring to more groups than were specified in the search pattern is a syntax violation.) But I trust that the examples I've shown here—as simple as they are—have helped to give you a good idea of the power of regular expressions in C++.

For more on this and other C++ topics, my book C++ for the Impatient gets to the heart of the matter in a hurry. If you're just desperate to absorb all the output of my brain, check out my website to discover my other technical books, novels, blog—even movie reviews.

  • + Share This
  • 🔖 Save To Your Account