Monday, August 31, 2009

globpath with an expression

Vim 7.2.1-255

Not quite getting something.

I can do this:
echo globpath('C:\temp', 'test')
-- Nothing

echo globpath('C:\temp', 'test.*')
c:\temp\test.db
c:\temp\test.js
c:\temp\test.log
c:\temp\test.vim

echo globpath('C:\temp', 'test\(.*\)')
c:\temp\test.db
c:\temp\test.js
c:\temp\test.log
c:\temp\test.vim

echo globpath('C:\temp', 'test\(.vim\)')
-- Nothing

So, I am trying to use a regular expression to start limiting the files.
Any ideas on what I am missing?

TIA,
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: