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....



RegExp


Unit:SDL_stringl
Class:TGrep
Declaration:property RegExp: string;

The property RegExp contains the regular expression to be used for any subsequent pattern matching by means of the method MatchString. When a new regular expression is assigned to RegExp, it is internally converted to "regular expression tokens " which are then used for pattern matching. A maximum of 64 tokens can be generated (which should be enough for even the most complicated search patterns).

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): grep



Last Update: 2023-Dec-13