Returns the number of ranges.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A result must have at least one range, but may optionally have more (for example, to represent regular expression capture groups).
range(at:) the value
0 always returns the value of the the
range property. Additional ranges, if any, will have indexes from
Text Checking Type Range and Type