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


Class: TGrep
Declaration: property TGrep.MatchEndPos: integer;

The readonly property MatchEndPos returns the terminal position of a matched regular expression (as defined by the property RegExp), i.e. it contains the position of the last character of the parameter Instring of the method MatchString which matches the current regular expression. MatchEndPos is set after every call to MatchString.

Example: This property is used in the following example program (see for downloading the code): grep

Last Update: 2012-Okt-20