The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



TGrep


While simple string search algorithms like pos (of Delphi), or NumberedPos are highly efficient and simple to use, they are too weak when it comes to search for more complicated patterns. For example, a search for all strings starting with an uppercase letter followed by a digit would be impossible with these simple string search functions.

TGrep offers a simple solution to search problems like this by accepting regular expressions. The example above could be simply solved by using the regular expression ^[A-Z][0-9].

The class TGrep provides the most fundamental routines for pattern matching. For a more detailed description of the usage of TGrep, please have a look at the section How to use TGrep.


Last Update: 2013-May-14