You are here: PSPad forum > English discussion forum > Multi-Line Search Add-On

Multi-Line Search Add-On

Goto Page: Previous1 2 3 4 5 6 7 8 9 10 11 ...LastNext

#31 Re: Multi-Line Search Testers Needed

Posted by: Joe Belmaati | Date: 2006-11-06 16:24 | IP: IP Logged

MrSpock:
That's strange. I have tried your very example and had no difficulties. Sure you haven't overlooked something?

Try if you can get it to work with this:

Quote:
Lorem ipsum dolor sit amet consectetuer laoreet tempus montes augue felis. Nibh morbi dapibus tempus pretium sem id et augue nisl accumsan. Id molestie condimentum lobortis risus lorem id tempus urna enim semper. Laoreet gravida semper sed senectus habitasse Morbi tortor sem Nam Quisque. Id ac Curabitur et consequat vitae orci Aliquam a Sed.

Hendrerit nisl elit fermentum parturient nisl dapibus condimentum hendrerit id In. Enim ligula vitae auctor orci Vestibulum lacinia Mauris cursus Mauris ut. Non lacinia ut consectetuer ut hendrerit congue ornare mollis Sed congue. Mattis facilisi ut Curabitur Aenean venenatis Pellentesque id facilisi sem sit. Vel id id ac adipiscing dolor congue vel Nam nibh eros. Semper felis ante sodales et lorem Suspendisse ac et felis est. Vel ut fermentum.

1969 - the year man landed on the moon

Metus In Aliquam mus ridiculus ut odio ipsum pulvinar Pellentesque nibh. Congue pharetra leo morbi dictumst Curabitur at turpis malesuada Nulla malesuada. Et Aliquam et volutpat magna aliquam ipsum tortor interdum Quisque eu. Urna vel a malesuada ac accumsan eu ac lorem hac habitant. Vivamus neque Vivamus natoque amet turpis amet cursus orci et.

Velit sed vel Sed orci pharetra vitae libero tellus sit Nam. Convallis justo et felis et Nulla at massa malesuada Sed Vestibulum. Dapibus laoreet nibh Nam elit tempus Nullam ligula libero aliquam consectetuer. In elit justo massa leo habitant et vel vitae in egestas. Sit malesuada sed turpis elit Nam et Curabitur ante vitae eget. Suspendisse congue nunc Sed ut Nam Morbi Nulla nibh Lorem eget. Aliquet.

Options: Reply | Quote | Up ^


#32 Re: Multi-Line Search Testers Needed

Posted by: MrSpock | Date: 2006-11-06 19:15 | IP: IP Logged

Hmm ... you are right. Your RegEx matches the example sentence correctly when the file starts with it, like this:

1969 - the year man landed on the moon
1969 - the year man landed on the moon

(Matches twice, as expected.) But it doesn't when there is anything before the string.

Options: Reply | Quote | Up ^


#33 Re: Multi-Line Search Testers Needed

Posted by: phdesigner | Date: 2006-11-09 21:54 | IP: IP Logged

Looks like there is still a bit of work to be done with Regular Expressions, to be honest I didn't put it through very much testing.

The Regular Expression support is from MS VBScript regular expressions, so I wonder if there's some difference between that syntax and other regex.

I'll keep you all posted with new developments.

Options: Reply | Quote | Up ^


#34 Re: Multi-Line Search Testers Needed

Posted by: MrSpock | Date: 2006-11-10 00:25 | IP: IP Logged

No need to hurry. Your extension is already very helpful in its present state. Again, thanks for sharing it with the community.

Options: Reply | Quote | Up ^


#35 Re: Multi-Line Search Testers Needed

Posted by: vbr | Date: 2006-11-10 02:45 | IP: IP Logged

phdesigner:
The Regular Expression support is from MS VBScript regular expressions, so I wonder if there's some difference between that syntax and other regex.

Some informations about RE in different languages could be found e.g. at
www.regular-expressions.info

Options: Reply | Quote | Up ^


#36 Re: Multi-Line Search Testers Needed

Posted by: Joe Belmaati | Date: 2006-11-10 10:28 | IP: IP Logged

Here's a vote for using Perl compatible regular expressions....

Options: Reply | Quote | Up ^


#37 Re: Multi-Line Search Testers Needed

Posted by: CarlosCM | Date: 2006-11-16 16:06 | IP: IP Logged

This is neat. Could this be used to "Search / Replace in Files"? I've got whole folders full of files I'd like to use this on.

Options: Reply | Quote | Up ^


#38 Re: Multi-Line Search Testers Needed

Posted by: vbr | Date: 2006-11-17 09:12 | IP: IP Logged

Thanks again for the new version, Paul;
1.2.8
www.phdesign.com.au

The modeless dialog is really great.
Some small issues I found in this version are the shorcuts: Alt+S, Alt+R ... don't seem to work in my installation; Esc is fine.

Replace operations with RE still have problems if using metacharacters; all occurences are highlighted correctly, but get not replaced, like in the previous version.
This will probably need some more time to tune up.
Keep up the excellent work!

Options: Reply | Quote | Up ^


#39 Re: Multi-Line Search Testers Needed

Posted by: dash | Date: 2006-12-05 15:04 | IP: IP Logged

Thanks for the script, phdesigner!

Are you taking feature requests?
Can you add a new option, for "multiple line search & replace"?
img295.imageshack.us
It will search for text of n-line from 'search Text' window,
and replace it with text of n-line from 'replace with' window.

bugs:
like vbr already mentioned, there is a prob with metacharacters/regular expressions, phreplace finds them, but it wont replace them.
p.s.
can you add a button for listing and inserting regular expressions into search field? (just like [?],[!] buttons of original PSPad search dialog)

Also your script doesnt seem to like my windows theme:
img237.imageshack.us
(never had this problem before, in any other app...)

Options: Reply | Quote | Up ^


#40 Re: Multi-Line Search Testers Needed

Posted by: phdesigner | Date: 2006-12-05 23:18 | IP: IP Logged

Hi Dash,

I don't quite understand what Muliple Line Search & Replace Option would do sorry.
You should be able to search by multiple lines, and replace that search with multiple lines already. The only exception is regular expressions, which I haven't completed properly.

I like the idea of [?],[!] buttons for regular expressions, will try to incorporate this into a new version.

That screenshot from your windows theme is really weird, never seen that before. Not really sure how I'm going to be able to test it, but maybe I'll google it and see if anyone else has had that issue with another vb applications

Some of the known bugs in version 1.2.8 are:

* If phReplace is open and you start a new editor (either a blank document or open an exisiting one) then try to do a search it will throw an error.

* Can't use the replace function when searching for regular expressions.

* Alt-S and Alt-R don't work - haven't checked this myself but should a quick fix.

* Various Regular Expression bugs, such as not matching a line if there is text before it, not handling /n correctly.

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 5 6 7 8 9 10 11 ...LastNext





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