SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: davew on January 12, 2019, 04:27:02 pm

Title: Vim/Perl syntax, backwards search with ? not considering ignore case switch
Post by: davew on January 12, 2019, 04:27:02 pm
Windows 7
SlickEdit Pro 2018 (v23.0.0.11 64-bit)
Config\23.0.0\hotfixes\hotfix_se2300_1_cumulative.zip (Revision: 1)

Pressing '?' to do a backwards search and adding the /i does not work.
For example: ?some_string/i
Forward search with '/' does work.
For example /some_string/i

Also, vim with vim syntax backward search works:
?some_string\c

I haven't tried other switches.

Title: Re: Vim/Perl syntax, backwards search with ? not considering ignore case switch
Post by: Clark on January 15, 2019, 07:04:20 pm
I made the same mistake as you.

When you use ? you need to use ? to terminate the string and then specify the options.

?some_string?i

I tested the above and it works.
Title: Re: Vim/Perl syntax, backwards search with ? not considering ignore case switch
Post by: Clark on January 15, 2019, 10:54:11 pm
I should also mention that

?some_string\c

Works in SlickEdit as long as your regex syntax is configured for Vim syntax. Tools>Options>Editing>Search and set "Regular expression syntax" to Vim.
Title: Re: Vim/Perl syntax, backwards search with ? not considering ignore case switch
Post by: davew on January 16, 2019, 08:08:22 pm
Ah, didn't know the termination had to be the same character. Thanks!