SuperEdi

User: Guest

Search

Please use the
Bug Report Form
if you think you found a software defect.

Use the Contact Form
to send a personal message to Wolfgang.

RSS Feed RSS Feed

Other boards:
Juke
QBrowser
Raduga (English)
Song Requester

using Replace in Documents script

Posted on: SuperEdi

From Message

w4tch3r

2005-04-20 00:49:54

using Replace in Documents script

Hi,

I just installed and tried 3.7 U. Congratulations to you Wolfgang for writing a powerful editor. I really like the scripting ability.

Can you suggest please how to use the Replace in Documents.html script to remove blank lines? I tried regex, replace \r\n\r\n with \r\n, but it replaces with literal "\r\n".

I also tried: regex replace \(\r\n\)\r\n with \1 but it didn't work. Is it possible to use regex with groups like this?

thanks,

W4th3r

Wolfgang Loch

2005-04-20 21:05:38

Re: using Replace in Documents script

1. To remove empty lines, use these settings:
Search what: \r\n\r\n
Replace with:
[ ] Ignore Case
[x] Global
[x] Regular Expression
[x] Multiline Search

2. Yes, you can use groups, for example:
Search what: "(.*?)"
Replace with: '$1'
[x] Regular Expression

mmccord

2005-05-18 18:42:21

Re: using Replace in Documents script

I'm also using 3.7.U and I'd consider it perfect if it supported regular expressions. I must be missing something. When I hit ctrl-H for find/replace, I don't see the options:
[ ] Ignore Case
[x] Global
[x] Regular Expression
[x] Multiline Search

I only see:
[ ] Match whole word only
[ ] Match case
Replace in
[ ] Selection
[ ] Whole file

Is there an addon for regular expressions?

Thanks,
Mark

Andreas Loch

2005-05-19 05:10:28

Re: using Replace in Documents script

Have a look at menu "Tools | Scripts | Text | Replace in Documents.html"

Post a reply to this message: