Next: , Up: RegexResults   [Index]


1.145.1 RegexResults: accessing

asArray

If the regular expression was matched, return an Array with the subexpressions that were present in the regular expression.

at: anIndex

If the regular expression was matched, return the text of the anIndex-th subexpression in the successful match.

from

If the regular expression was matched, return the index of the first character in the successful match.

fromAt: anIndex

If the regular expression was matched, return the index of the first character of the anIndex-th subexpression in the successful match.

intervalAt: anIndex

If the regular expression was matched, return an Interval for the range of indices in the anIndex-th subexpression of the successful match.

match

If the regular expression was matched, return the text of the successful match.

matchInterval

If the regular expression was matched, return an Interval for the range of indices of the successful match.

size

If the regular expression was matched, return the number of subexpressions that were present in the regular expression.

subject

If the regular expression was matched, return the text that was matched against it.

to

If the regular expression was matched, return the index of the last character in the successful match.

toAt: anIndex

If the regular expression was matched, return the index of the last character of the anIndex-th subexpression in the successful match.