everyMatch
- function
- new in 1.81
- The match and everyMatch functions have identical syntax to the offset, range, everyOffset, and everyRange functions, but can only be used to locate a pattern, not a simple text string. When the match function finds a match for a pattern, it returns a match property list containing a number of properties, depending on the pattern. For a pattern with no capture groups, it will contain "text" and "text_range" properties with the matched text and the range where that text was found.
put the match of <3 digits> in "123456789" -> (text:"123", text_range:"1" to "3")
If the pattern being matched contains one or more capture groups, the property list returned by the match function will include two additional properties for each group that was matched. The first will be the name of the group, with the matched text for that group as its value. The second will be the name of the group with "_range" appended to it, with the range where that group was matched as its value.