You are here: PSPad forum > English discussion forum > Re: Improve Search CSV File

Re: Improve Search CSV File

#1 Improve Search CSV File

Posted by: maki | Date: 2020-04-16 09:58 | IP: IP Logged

Where is this option, or similar in PSPad, excellent search in CSV (comma separated) files

[x]Look Around during the Selection Only Search

Options: Reply | Quote | Up ^


#2 Re: Improve Search CSV File

Posted by: pspad | Date: 2020-04-16 10:44 | IP: IP Logged

maki:
Where is this option, or similar in PSPad, excellent search in CSV (comma separated) files

[x]Look Around during the Selection Only Search

I am sorry, but I don't understand what your option should do.
PSPad know to search in selected text

Options: Reply | Quote | Up ^


#3 Re: Improve Search CSV File

Posted by: maki | Date: 2020-04-16 12:21 | IP: IP Logged

pspad - this option allows use lookahead and lookbehind regex to look outside of the selection while match only in the selection.

Options: Reply | Quote | Up ^


#4 Re: Improve Search CSV File

Posted by: pspad | Date: 2020-04-16 12:41 | IP: IP Logged

I dont understand

Options: Reply | Quote | Up ^


#5 Re: Improve Search CSV File

Posted by: Vany | Date: 2020-04-17 15:21 | IP: IP Logged

so you wanna search all the text except the selected one?

--
Vany
(PSPad 5.5.1.812 x32, W10h/p x64 en/cs)

Options: Reply | Quote | Up ^


#6 Re: Improve Search CSV File

Posted by: vbr | Date: 2020-04-18 23:25 | IP: IP Logged

Hi,
the option mentioned in the original post seems to be an exact quote from the release notes of EmEditor:
"Enabling the Look Around during the Selection Only Search option allows you to use lookahead/lookbehind expressions to look outside of the selection while matching only in the selection." (The page can be found for this exact search phrase.)

This setting affects lookbehind and lookahead assertion, which can then be checked even outside of the text selection considered for searching.

However, it seems to me, that this is how PSPad currently works, i.e.
with the regex search pattern
(?<=a)bc(?=d)

bc should be found, only if preceded by a and followed by d; bc is only matche, if it is a part of abcd.
As far as I can see, the pattern works this way in PSPad even for search in selection, where only bc is selected.

This can be seen while searching or counting the matches, there are possibly some limitations for replacements.
Regards,
vbr

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR