Five Habits for Successful Regular Expressions (22 tags)
For many programmers, writing regular expressions is a black art. They stick to the features they know and hope for the best. Tony Stubblebine, author of Regular Expression Pocket Reference, says programmers can avoid a lot of trial and error by adopting these five habits for regular expression development. The code examples in this article use Perl, PHP, and Python, but the advice Tony espouses is applicable to nearly any regex implementation.
Regular Expressions in C++ with Boost.Regex (7 tags)
Searching and parsing text can be a messy business, especially in C++. Instead of building your own token-based state machine, spend an hour learning regular expressions and use a good package such as the regular expression library from the Boost library. Ryan Stephens demonstrates how to match, search, and parse text with Boost.Regex in C++.
Maintaining Regular Expressions (4 tags)
It's easy to get lost in complex regular expressions. Aaron Mackey offers a few tips and an ingenious technique to help you keep things straight.
Understanding Newlines (4 tags)
Munging text is familiar to agile language programmers. It's very straightforward, right? Text comes in, text changes, and text goes out. Yet in a multi-OS world with networks, internationalization, and character sets, is text really that simple? Xavier Noria delves into how computers handle text to explain the newline problem and how to work with it in agile languages.