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

Multi-Line Search Add-On

Goto Page: PreviousFirst...6 7 8 9 10 11 12 13 14 15 16 ...LastNext

#101 Re: Multi-Line Search Add-On

Posted by: vbr | Date: 2008-09-09 11:03 | IP: IP Logged

ellocco:
Hello,
... but I still don't know how to add new lines
(\n or \u000D) with the replace feature.

Hi, it seems, that phReplace doesn't currently support these literals in the replacement pattern.
You can however use the newline directly, e.g. replace (without quotes):
"(aaa)"
>>>
"
$1
"
(in the search pattern you can use direct newlines or "\r\n")

Options: Reply | Quote | Up ^


#102 Re: Multi-Line Search Add-On

Posted by: ellocco | Date: 2008-09-10 15:29 | IP: IP Logged

vbr:
Hi, it seems, that phReplace doesn't currently support these literals in the replacement pattern.
You can however use the newline directly, e.g. replace (without quotes):
"(aaa)"
>>>
"
$1
"
(in the search pattern you can use direct newlines or "\r\n")

Great! - Thank you, I would never have thought, that it is possible this way. Thanks!

ellocco

Options: Reply | Quote | Up ^


#103 Re: Multi-Line Search Add-On

Posted by: ArchCarrier | Date: 2008-12-09 10:04 | IP: IP Logged

There is a spelling error in the dialog box that appears after pressing Replace All: it says 'Replace All completed suceessfully'.

Also, can you change this box so that it returns the number of replacements? Right now, it always returns the same dialog box, even if nothing was replaced. This is a bit confusing.

Otherwise, no comments about your plugin except that I wish that Jan would build it into PSPad...

Options: Reply | Quote | Up ^


#104 Re: Multi-Line Search Testers Needed

Posted by: rovf | Date: 2009-02-18 10:53 | IP: IP Logged

When I go to the download site you mention (http://www.phdesign.com.au/) I get the following error:

Server.MapPath() error 'ASP 0173 : 80004005'

Invalid Path Character

/document.asp, line 12

An invalid character was specified in the Path parameter for the MapPath meth

--
Ronald Fischer (Germany)

Options: Reply | Quote | Up ^


#105 Re: Multi-Line Search Testers Needed

Posted by: vbr | Date: 2009-02-18 14:45 | IP: IP Logged

rovf:
When I go to the download site you mention (http://www.phdesign.com.au/) I get the following error:
...

It seems, that the server architecture changed a bit, the following adress should work:

www.phdesign.com.au

It might be updated on the beginning of this thread too.

vbr

Edited 1 time(s). Last edit at 2009-02-18 14:45 by vbr.

Options: Reply | Quote | Up ^


#106 Re: Multi-Line Search Testers Needed

Posted by: Lolo | Date: 2009-04-29 08:30 | IP: IP Logged

Hello,

I have found a small bug with the last version of phReplace v1.4.3

In the following text bellow:
01;00;Z
01;01;Z
01;02;Z

If you try to replace ^([0-9]+;) by $1ABC with the button "Replace" you obtain:
01;ABC00;ABCZ
01;ABC01;ABCZ
01;ABC02;ABCZ

While you should have:
01;ABC00;Z
01;ABC01;Z
01;ABC02;Z

If I use the button "Replace All", it works nice.
I suppose it is a bug.

Thanks, have a nice day and I really love phReplace.

Lolo.

Options: Reply | Quote | Up ^


#107 Re: Multi-Line Search Testers Needed

Posted by: vbr | Date: 2009-04-29 13:26 | IP: IP Logged

Lolo:
Hello,

I have found a small bug with the last version of phReplace v1.4.3

In the following text bellow:
01;00;Z
01;01;Z
01;02;Z

If you try to replace ^([0-9]+;) by $1ABC with the button "Replace" you obtain:
01;ABC00;ABCZ
01;ABC01;ABCZ
01;ABC02;ABCZ

While you should have:
01;ABC00;Z
01;ABC01;Z
01;ABC02;Z

If I use the button "Replace All", it works nice.
I suppose it is a bug.

Thanks, have a nice day and I really love phReplace.

Lolo.

I can confirm this behaviour; I guess, it might be complicated to correct it; for single replacements probably the actual cursor position is also taken as the begining of the string (for the replacement) - mathced with ^., in this case the boundary corresponds.
if you use something like
01;X00;Z
01;X01;Z
01;X02;Z

it works as expected.

vbr

Options: Reply | Quote | Up ^


#108 Re: Multi-Line Search Testers Needed

Posted by: pbrouty | Date: 2009-07-14 08:55 | IP: IP Logged

I'm happy to find this script for pspad. It will be really useful. But I have a problem. When i open the script the options are all black. I can't read them... just black boxes. I will try to include a screenshot here. I've changes colors in my display settings (winxp), but didn't help. Any suggestions?image

Options: Reply | Quote | Up ^


#109 Re: Multi-Line Search Testers Needed

Posted by: Theberge43 | Date: 2009-07-24 18:53 | IP: IP Logged

pbrouty:
I'm happy to find this script for pspad. It will be really useful. But I have a problem. When i open the script the options are all black. I can't read them... just black boxes. I will try to include a screenshot here. I've changes colors in my display settings (winxp), but didn't help. Any suggestions?
image

I have the same exact problem ! Please fix it !

Options: Reply | Quote | Up ^


#110 Re: Multi-Line Search Testers Needed

Posted by: phdesigner | Date: 2009-08-07 04:52 | IP: IP Logged

Wow, it's been nearly a year since I last posted, my apologies for not being very active here, it has been a busy year.

The good news is in my year of busyness I have been studying object-oriented design patterns and although phreplace is written in vb6 which is not a real object-oriented language, I have been able to implement some patterns and write really cool code (well, it's cool if you're into that sort of thing - my wife doesn't think so). I have rewritten phreplace completely, hopefully making it much more scalable and reliable, my hope is that I will be able to port it to SciTE as well (which I am using now more than PSPad - shame on me!).

Hopefully by next month phreplace 2.1 should be ready for release, I'll start trolling through this thread for bugs / improvements and test them against 2.1 and give you all some feedback. The major improvements that I hope to see are:
* support for larger files
* support for Vista (might have to create an installer rather than a zip)
* hopefully with some help from pbrouty / Theberge43 I'll sort out the issue of black options.

Thanks to all of you who have been posting / emailing issues, I'll try and respond to all of these when the new version is out.

Options: Reply | Quote | Up ^


Goto Page: PreviousFirst...6 7 8 9 10 11 12 13 14 15 16 ...LastNext





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