Hi Allie,
Historians believe that Sat, 20 Jan 2001 at 07:30:19 GMT -0500 was when,
A . Curtis Martin [AM] typed the following:
AM> Has anyone been using regex's with the editors replace tool?
No, but now that you mention it, I'll try it. :-)
AM> I would assume that it uses the same metacharacter syntax as elsewhere
AM> in TB!
Indeed it does. However, it appears it can only search one line at a
time.
<snip>
AM> I tried the simple search expression:
AM> ^.*>>+.*$\n
Remove the \n and this will work. However, without matching the \n,
how are you going to remove the excess lines? This does seem like a
bug.
AM> The same for removing extra blank lines.
AM> \n\n
It would appear that \n is not allowed in the message editor. Does
anyone know what the C++ code for CR\LF is? I know you need more than
just \n, but I haven't programmed in the Windows environment.
AM> IOW's, all expressions where line breaks are part of the search, they
AM> don't seem to work. Is it that I'm missing something or is the free
AM> caret interface preventing certain regex searches from being carried
AM> out?
It is either that, or perhaps the TB search and replace tool only
works line by line. Thus looking for a \n might be impossible in the
scheme. It would be nice if the RITlabs guys could make the search
and replace tool look at the whole message.
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.49c under Windows 98 4.10 Build 2222 A
I've determined the momentum of my physics assignment so precisely
that it can be anywhere in the universe right now.
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]