Page 1 of 1

Regular Expression Help

Posted: Tue May 02, 2006 9:08 pm
by Pete Allison
I'm trying to delete several lines of text. An example line always contains


somewhere in the line. If this string is found, I would like to delete the entire line. The actual line is:

* $Revision: $\n

so there are two dollar signs. (Yes, it's a VSS Revision tag.)

I think AFR can do this, if I can figure out the right RE to use.

This is what I have tried so far:

\$Revision*: Changes the line to "n: $"

\$Revision*\r\n: does not match.

I've tried a few other things that did not work as well. I'm a bona-fide newbie at RE!

Posted: Wed May 03, 2006 7:11 am
by Abacre
Search for:

Replace with:

^ is the beginning of line.

Modifier M should be checked. Uncheck other modifiers.

Regular Expression Help

Posted: Wed May 03, 2006 1:38 pm
by Pete Allison
Perfect! You are a genius, Mr. Vasin! And tremendous help!

RE: Regular Expression Help

Posted: Wed May 03, 2006 1:49 pm
by Pete Allison
One thing, how do you keep the original file date in batch replace?

I have "Keep original file date" checked on Options, General.

I don't see one for batch.

If batch replace doesn't support this, can I use RE on regular replace? I know it will maintain the original file date.

Posted: Wed May 03, 2006 4:05 pm
by Abacre
"Keep original file date" on General tab of Options window should work for Batch Replace.
Are you it does not work? Could you send us ( your
sample file and your default.cfg file located in
C:\Program Files\Advanced Find and Replace