Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    Iowa
    Posts
    1

    Default XML Datetime Compare

    I am a newbie to Beyond compare and I don't get regular expressions. I am simply try to ignore the following in 2 files. Since it is a date time it changes every time I run of course.
    <lexs:MessageDateTime>2009-01-25T17:02:04</lexs:MessageDateTime>

    I am using 3.01.14

  2. #2
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    You probably don't even need regular expressions for that.

    • Edit your grammar for XML files
    • Add a new element and give it a meaningful name...like: MessageDateTime
    • Choose category: Delimited
    • Set your "text from" value: <lexs:MessageDateTime>
    • Set your "to" value: </lexs:MessageDateTime>
    • In your Session Settings importance tab, remove the checkmark from MessageDateTime to make it unimportant.
    • Enable the "Ignore Unimportant Differences" button [] in the toolbar
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

  3. #3
    Join Date
    Jan 2009
    Posts
    9

    Default

    ps. Just found this! Thanks Michael, this solved my problem #4546 "Text Compare Replacement with Regular Expressions". Cheers, Barry.

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,619

    Default

    Hello,

    Just to clear up a bit of terminology, this is not a Text Compare Replacement (a Pro feature), but a new Grammar element that is marked as unimportant in the session settings.

    Replacements can be similarly defined to match specific pairs of text, where grammar elements match on the text itself (independent of what it is aligned to).
    Aaron P Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •