Trying to create a pluralization function using vim script
I have this regex copied from a php script to make a few words
/(?:([^f])fe|([lr])f)$/i \1\2ves
However this does not work with vim
if "calf" =~ "\\v(?:([^f])fe|([lr])f)$" echo "matched" end if
E64: ? follows nothing errors E64: ? follows nothing E64: ? follows nothing
I think I do not fully understand this regex, and how can I use it with a vim script?
vim
allenhwkim Sep 05 '13 at 4:41 2013-09-05 04:41
source share