![]() A regular expression grammar is a language unto itself-but a language that's relatively simple and easily learned. It's a boon to text processing, though, enabling you to do a great deal with just a few lines of C++ code. Simply put, a regular expression is a text pattern. The new C++11 specification adds the capabilities of regular expressions (regex) to the Standard library, which can make your life easier. But such tasks can require a lot of work. Could you do that by reading and analyzing one character at a time? Of course. It's not uncommon to use C++ for text processing for example, reading a file containing HTML code and writing another file containing the same code in a different HTML format.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |