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



MatchStartPos


Unit:SDL_stringl
Class: TGrep
Declaration: property TGrep.MatchStartPos: integer;

The readonly property MatchStartPos returns the starting position of a matched regular expression (as defined by the property RegExp), i.e. it contains the position of the first matched character of the parameter Instring of the method MatchString.

Note: MatchStartPos equals RegExpToken[1].ValidFrom ; it has been included in the class TGrep for convenience.

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



Last Update: 2012-Oct-20