PDA

View Full Version : Text Compare to ignore whole line


opr4492
20-Nov-2008, 09:18 AM
I want to ignore entire line compares for any line that contains
"Last Modification:"

I can not figure out.

Chris
20-Nov-2008, 03:49 PM
We also discussed this by email, but here's the answer for anyone else monitoring this thread:

It is possible to ignore these differences. First, open the files in the File Viewer. Select Tools > Edit Current Rules. Go to the Importance tab. Click New in unimportant text. Select "Regular Expression" as the category. Enter the expression ".*Last Modification:.*" and click OK until you're back to the main File Viewer window.

Toggling View > Ignore Unimportant Differences will show or hide the defined unimportant text.

Mae
21-Jul-2011, 09:43 AM
I have a similar issue but I found that I could not get it to work.

I want to avoid the following line in a group of web pages
<!-- InstanceBeginEditable name="Updated date" -->2011-01-05

The date is different in every file. I would like it to show up in blue to let me know that there has been a change but only a minor change.

Any file that has more changes then just the date would be red.
Any file that is black means no changes.

In the the rule I put - .*Updated date*. but it didn't seem to help!

Thanks

Chris
21-Jul-2011, 01:15 PM
The ending *. is in the wrong order if you're using a regular expression. Try using ".*Updated date.*" instead.

Mae
25-Jul-2011, 12:18 PM
Figured out what the problem was. The code was right, I didn't select the right field in the compare.


This didn't help with having the unimportant text be blue instead of black. I also need to create a report that shows the following:

Important - Red
Unimportant - Blue
No changes - Black

I can't seen to get the unimportant to be coloured blue and how would I export or create a report that would reflect this.

This software is new to me. Just trying to give myself a crash course to complete this one task.

Thanks for the help

Chris
25-Jul-2011, 02:59 PM
In Beyond Compare 2, turning off "View > Ignore Unimportant Text" will make unimportant text display in blue. When it is on, the text will display in black.

To generate a report, select "File > File Differences Report" in the File Viewer. If you leave "Ignore Unimportant" unchecked in the report dialog, unimportant differences will be colored blue.

Mae
27-Jul-2011, 06:32 AM
Thanks but I want to report the differences on the main screen and report on that. I am only looking at the URLs(not the individual files). How would I report that from the session page?

I would also like to know when generating a report that I can display the full URL instead of just the indvidual page title?

Example:
\ndvdls\tpcs\ncm-tx\rtrn\cmpltng\ddctns\lns300-350\menu-eng.html
instead of
menu-eng.html

Aaron
27-Jul-2011, 10:48 AM
Hello,

BC2 can generate a folder level report from the Directory Viewer after running your content comparison. It is in the Actions menu -> Folder Comparison Report.

Use the Summary List report layout to see a relative path from the base directory. There is no way to show the full path in a side by side report.