Ignoring lines that starts with - more than one ignore word

Two- and three-way text compare and merge issues.

Ignoring lines that starts with - more than one ignore word

Postby jegr » Tue May 25, 2010 4:32 am

It is possible to specify if a line starts with some word, then it should be ignored in the compare. Is there a way to specify if there are two types of lines that should be ignored, those starting with "AAA" and those starting with "BBB"?

In the folder ignore options, you can specify several file filters, separated with a ";", but that seems not to work for the text ignore options, i.e, in the begin with filter writing "AAA;BBB". Same goes with the contain and ends with.

UltraCompare version 7.10.0.1012
jegr
Newbie
 
Posts: 1
Joined: Tue May 25, 2010 4:23 am

Re: Ignoring lines that starts with - more than one ignore word

Postby Mofi » Tue May 25, 2010 7:53 am

No, it is not possible as far as I know to specify more than one string (not word!) to ignore lines beginning with, contain or end with the specified string.

When it is not possible for your compare to use AAA for text ignore option begin with and BBB for option contain you might modify both files first with UltraEdit or UEStudio by running an UltraEdit regular expression replace all on both files searching for %BBB and replacing all occurrences with AAA#BBB. Now in both files all lines to ignore start with AAA and your compare should be possible. Finally you can undo this change in both files by searching for AAA#BBB and replace it with just BBB.

BTW: Currently latest version of UC Prof. is already v7.10.0.1020.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Ignoring lines that starts with - more than one ignore word

Postby pietzcker » Wed May 26, 2010 3:29 am

I suggest that you write a feature request to IDM asking for regular expression support in the ignore strings. I have done that before, but the more users ask for it, the higher the chance of it being implemented earlier. Other compare tools like Beyond Compare have this functionality already, after all.

(And it would be possible to reduce the three text boxes (starts with/contains/ends with) to one)
User avatar
pietzcker
Master
Master
 
Posts: 241
Joined: Sun Aug 22, 2004 11:00 pm

Re: Ignoring lines that starts with - more than one ignore word

Postby bulgrien » Wed May 26, 2010 10:45 am

I agree with pietzcker... email IDM and ask for an enhancement!
In the meantime, Mofi mentioned a possible work-around if you only have two "begin with" strings you want to ignore... You can put one value in the "begin with" field and the other in the "contain" field. The "contain" field will ignore the string anywhere in the line including the beginning of the line.
User avatar
bulgrien
Master
Master
 
Posts: 92
Joined: Fri Dec 11, 2009 1:02 am
Location: Pennsylvania, USA


Return to Text Compare and Merge