patch 7.4.1685

Problem:    There is no easy way to get all the information about a match.
Solution:   Add matchstrpos(). (Ozaki Kiichi)
This commit is contained in:
Bram Moolenaar
2016-03-29 23:10:31 +02:00
parent d18cfb7dbf
commit 7fed5c18f8
6 changed files with 88 additions and 4 deletions

View File

@ -592,6 +592,7 @@ String manipulation: *string-functions*
match() position where a pattern matches in a string
matchend() position where a pattern match ends in a string
matchstr() match of a pattern in a string
matchstrpos() match and postions of a pattern in a string
matchlist() like matchstr() and also return submatches
stridx() first index of a short string in a long string
strridx() last index of a short string in a long string