comp • gb.pcre • regexp • offset

RegExp.Offset (gb.pcre)

Property Read Offset As Integer

Returns the offset of the beginning of the match, i.e. how many characters precede it in the subject string.

For example, using the subject string "The quick brown fox" and the pattern "brown fox", the Offset property would contain 10.

If the regular expression did not find any matches, the offset will be -1.