get list'index of pattern

19 views
Skip to first unread message

Ni Va

unread,
Feb 8, 2018, 12:56:15 PM2/8/18
to vim_use
Hi,


I got a list and would get index of item matching a pattern.

index(list, string_item) works
index(list, pattern_item) ??


Thank you

Andy Wokula

unread,
Feb 8, 2018, 2:57:37 PM2/8/18
to vim...@googlegroups.com
match(list, pattern)

--
Andy
Message has been deleted
Message has been deleted

Ni Va

unread,
Feb 9, 2018, 4:09:41 AM2/9/18
to vim_use
Ok matchstrpos is the good one to get index'List of matched pattern.
Thank you Andy
Reply all
Reply to author
Forward
0 new messages