Forum Discussion
I'm sorry for my bad explanation i was in a hurry yeserday.
I didn't know that .pix was common for images and i'm trying to compare XML data.
The problem is that i don't know what i have to insert in this line
regEx.Expression := '(?i)\d{1,2}.\d{1,2}.\d{2,4}\s\d{1,2}:\d{2}:\d{2}\w{2}';No matter what i try i end up with the result that the files are equal even when they are not equal.
There are 2 parts where the files differ, the ID and the Date.
Can you give me an example how i can get the script to ignore the ID wich i showed in the previous post ?
Hi,
Regex for the AppVersion can be like this:
(?-g)AppVersion="(.+)"
i.e.: search for anything after 'AppVersion' that is enclosed in quotes.
Likewise, the regex for the ID may be like this:
(?-g)ID="(.+)"
And, instead of
regEx.Replace(fileText1, '<ignore>');
something like
regEx.Replace(fileText1, 'AppVersion="<ignore>"');
and
regEx.Replace(fileText1, 'ID="<ignore>"');
should be used.