Topic Options
#18109 - 10/06/04 09:47 AM Watch search & replace
stuartg Offline
OL Expert

Registered: 03/06/03
Posts: 713
Loc: Swindon, England
Hi
I have a watch process where I am trying to remove trailing blank lines on a page.
I should be able to do this by a search and replace.
Search for "\r\012\r\012\f", replace by "\r\012\f".
If I run this repeatedly, I should get just one line feed / carriage return before each form feed.

However, I find that the search & replace will find some occurances of the the search string but not all of them. I haven't found a work around yet.

I have a sample config and data if you need them.
stuart

Top
#18110 - 10/06/04 02:31 PM Re: Watch search & replace
SeynabouD Offline
Member

Registered: 06/30/04
Posts: 99
Loc: Montreal
Hi

please report an issue by calling 514-798-8714 or via the web thru this link http://www.objectiflune.com/supportweb/

and then please upload your files using this link http://www.objectiflune.com/supportweb/addAttachment.aspx

Thanks
Team OL

Top
#18111 - 10/18/04 07:18 AM Re: Watch search & replace
stuartg Offline
OL Expert

Registered: 03/06/03
Posts: 713
Loc: Swindon, England
For information.
The Watch search and replace does not seem capable of consistently finding strings of the form .
So I have abandoned using the search and replace tool for this and instead written a VB script. By using a regular expression object I can do a sophisticated replace in 5 lines of code.
The main restriction I have is that the data files must be small enough to read into a VBstring.
Hope this is useful to anyone having similar problems.

Top