String-match location term
string(nth,"string",offset,length)
- Locates selections (think “cursor”)
- Finds nth occurrence of string provided
- Offset counts characters, first character in string is 1
- Length counts length of result
In text “the capers are green”:string(1,"capers",1,1) locates the “c”string(1,"capers",1,0) locates the point before the “c”string(1,"capers") locates the point before the “c”string(1,"capers",3,2) locates the “pe”string(1,"capers",-1,5) locates the “s are”