Go Back   Scooter Forums > Beyond Compare 3 Discussion > Text Compare (2-way)
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 10-Oct-2008, 10:55 AM
alexander alexander is offline
New User
 
Join Date: Oct 2008
Posts: 1
Default Ignore Trailing characters

I'm comparing 2 files.
I'm trying to get to important differences.
The unimportant differences is that one of the file has trailing characters.

Blah#Blah#blah#################

vs.

Blah#Blah#blah

is ok. Is there any way to ignore the trailing characters? Help! Thanks!
Reply With Quote
  #2  
Old 11-Oct-2008, 06:52 AM
Ernie Ernie is offline
Fanatic
 
Join Date: Mar 2004
Location: Austin,TX
Posts: 137
Default

This is probably not the case, but if the trailing characters are always constant, you could use a regular expression to ignore the trailing characters.

Edit the grammar/rules for the file type, select the Importance Tab, click Edit Grammar, click New. Provide a name for the Element name, select Basic, enter something like "\#+$" (without quotes), click on Regular Expression. Save and get back to the original Importance tab. Be sure the check box next to your newly created element is not check to indicate it is not important to comparison.

If you have a set of trailing characters, you could use something like "[\#abc]+$", assuming you can have trailing "#", "a", "b", "c" (or whatever characters can occur).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:39 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.