73134Re: VIML regex comparison problem
- Sep 9 3:53 AMOn 09/09/2013 11:38, Christian Brabandt wrote:
> On Mon, September 9, 2013 12:31, Mike Williams wrote:Facepalm.
>> On 09/09/2013 10:56, Nikolay Pavlov wrote:
>>> On Sep 9, 2013 1:40 PM, "Mike Williams"
>> I had tried calls to escape(..., '\') and that made no difference.
> Where did you do that? You need to make sure, that you only escape
> the right side of the comparison and not both sides.
>> Changing the testYep that works. Classic case of using regex to solve a problem and
>> if l:d !~ "^\V" . s:dir1
>> makes no difference.
> What happens, if you changed that line to:
> if l:d !~ escape(s:dir1, '\\')
getting two problems. Just needed to check a substring which Nikolay
Old enough to know better, but young enough to not care.
You received this message from the "vim_dev" 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
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>