Search found 7 matches

by FrogSpawn
Tue Dec 23, 2003 10:22 pm
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

Reminder: It may be my macro , but it is using your original RegEx expressions.
Indeed, but at least it seems less likely that there's anything about how I've recorded it that is affecting the outcome.
Again, I think your Regex should probably be modified to deal with the trailing spaces.
I ...
by FrogSpawn
Tue Dec 23, 2003 11:29 am
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

It was just the same as the original test text I posted earlier (I just had to do it from memory as I didn't have access to my original text or to the Internet at the time). All you need to do is remove any trailing spaces from the NAMEX lines (which is a requirement of the regex in my first replace ...
by FrogSpawn
Tue Dec 23, 2003 2:46 am
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

Solved? In a fashion...

Thanks for that, Bob.

First time I tried your macro, it worked (but it wasn't on my original test material which wasn't available at the time, so I made up a small bit of test text). But then I found it still had the same problem as mine...

As best I can tell the problem is this:

If this last ...
by FrogSpawn
Mon Dec 22, 2003 8:46 am
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

I tried removing all the trailing spaces before running the macro, still no go.

If you end up with trailing spaces on the NAMEX lines, removing just those should be sufficient. I really can't see that trailing spaces matter on the other lines - don't forget that I get the correct result if I do it ...
by FrogSpawn
Mon Dec 22, 2003 5:43 am
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

I see no problem when no trailing spaces on the lines.
Yes, you're right. The first replace won't work if the NAMEX line has a trailing space. As it happens, they don't in the source text so that hasn't been a problem. I can't see that trailing spaces on the other lines will present any problem ...
by FrogSpawn
Sun Dec 21, 2003 8:49 am
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

Hi Bob.

Result of running macro which has all three replace operations is that is performs the first two replace operations but not the last one.

Example:

Original text:
NAMEA
Line one text.
Line two text.

NAMEB
Line three text.
Line four text.
Line five text.

Desired result (achieved when ...
by FrogSpawn
Sun Dec 21, 2003 7:19 am
Forum: General
Topic: Macro - Another multiple-replace problem
Replies: 16
Views: 685

Macro - Another multiple-replace problem

Hi,

I have a problem with a macro which consists of three replace operations. When executed, it performs the first two but not the last one. If these replace operations are performed manually in the same sequence as the macro, they work correctly. If the first two replaces are recorded as one macro ...