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



RegExpToken


Unit:SDL_stringl
Class:TGrep
Declaration:property RegExpToken [regix: integer]: TGrepToken;

When a new regular expression is assigned to the property RegExp this regular expression is tokenized internally. The individual tokens can be accessed by the read only array property RegExpToken. The parameter regix is the index into the array of tokens. It may take any value between 1 and NrOfRegExpTokens.

RegExpToken can be used to analyze the results of a match in more detail. The parameter ValidFrom of the returned token contains the starting index of that particular token in the searched string.

 


Last Update: 2012-Oct-20