C/C++
regexpp3.txt
Associated article: Regular Expressions in C++
Tags: Web Development C/C++
Published source code accompanying the article by John Maddock in which he presents Regex++, a regular expression engine that makes C++ as versatile for text processing as script-based languages like Awk and Perl. Also see REGEXPP3.ZIP.
Regular Expressions in C++
by John Maddock
Listing One
bool validate_card_format(const std::string s)
{
static const boost::regex e("d{15,16}");
return regex_match(s, e);
}
Listing Two
bool validate_card_format(const std::wstring s)
{
...


