Regular Expressions

So, I've heard a little about regular expressions and how powerful they are, but I am unsure of how to implement it. Could someone provide a sample piece of code that searches a string for letters from A-Z? Or perhaps explain it to me, in addition to an example? Much appreciated!
If your compiler supports C++11, regular expression support is built-in to the C++ Standard Library:
http://www.cplusplus.com/reference/regex/
http://en.cppreference.com/w/cpp/header/regex
Click around, there are plenty of examples.
That said, only very recent versions of major compilers actually support <regex>.
If your C++11 compiler does not support it, upgrade.
If that is not possible for any reason, use Boost's RegEx library.
Topic archived. No new replies allowed.