Hi,
I am searching for the smarter method to Feed an entry of my Dict with
submatches of a String
let myString = "myPath\" . "foo" . "\nameOfFile.ext"
let myDict= {}
echo substitute(myString , '\(.*\)\\foo\\\(.*\)', "\1 \2", "")
Meanwhile doing "\1 \2", I would like todo
let myDict[\1] = \2 "if myDict[\1] does not exist
How can I do ?
Thank you
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php