Hi,
I've got 2 files. They have many differences, and some I want to ignore. I can make lines unimportant using Replacements (without regular expressions), eg. fixed text of "Monday" in the left file and "Tuesday" in the right file. Good so far.
However, there's more. In the left file, I may have a version number like "v7.2.3" or "v7.3.4", and in the right file have "v7.6.7" or "v7.4.5". They may or may not be the same version numbers. I want to ignore all these.
I tried using regular expression replacement item like this...
Text to find: v7\.\d+\.\d+
Replace with: v7\.\d+\.\d+
This didn't work. Tried...
Text to find: v7\.\d+\.\d+
Replace with: .
Tried
Text to find: v7\.(\d+\.\d+)
Replace with: v7\.$1
Still no luck. For all the above the Regular Expression box was ticked, and Side=Left.
I also tried various combinations, duplicating, trying the right side aswell / instead.
If I do this...
Text to find: v7\.\d+\.\d+
Replace with: v7.2.2
Then it works for all various versions on the left, but only for v7.2.2 on the right. Obviously. But I don't want to be limited on this in the right file.
Anyone know the solution to this ?
Cheers,
Barry.
I've got 2 files. They have many differences, and some I want to ignore. I can make lines unimportant using Replacements (without regular expressions), eg. fixed text of "Monday" in the left file and "Tuesday" in the right file. Good so far.
However, there's more. In the left file, I may have a version number like "v7.2.3" or "v7.3.4", and in the right file have "v7.6.7" or "v7.4.5". They may or may not be the same version numbers. I want to ignore all these.
I tried using regular expression replacement item like this...
Text to find: v7\.\d+\.\d+
Replace with: v7\.\d+\.\d+
This didn't work. Tried...
Text to find: v7\.\d+\.\d+
Replace with: .
Tried
Text to find: v7\.(\d+\.\d+)
Replace with: v7\.$1
Still no luck. For all the above the Regular Expression box was ticked, and Side=Left.
I also tried various combinations, duplicating, trying the right side aswell / instead.
If I do this...
Text to find: v7\.\d+\.\d+
Replace with: v7.2.2
Then it works for all various versions on the left, but only for v7.2.2 on the right. Obviously. But I don't want to be limited on this in the right file.
Anyone know the solution to this ?
Cheers,
Barry.
Comment