Please help:
I have 2 ear files, the only difference is the version numbers. i.e.
ABC-1.5.2.ear and ABC-1.6.2.ear.
I compare them as folder compare and ignore "1.5.2" and "1.6.2" parts of the file names. Here is what I did, some of regular expressions fails, only one give me correct answer.
A) Failure (Does not align):
1) Regular expression Align left file with (.*)1\.5\.4\.jar, right side with $1.\..\..\.jar
2) Regular expression Align left file with (.*)1\.5\.4\.jar, right side with $1.+\.jar
B) Success (Align):
Regular expression Align left file with (.*)1\.5\.4\.jar, right side with $1\1\.6\.2\.jar
I want to use general regular expression, so I can compare any file with version differences and do not need to edit regular expression.
Any idea?
I have 2 ear files, the only difference is the version numbers. i.e.
ABC-1.5.2.ear and ABC-1.6.2.ear.
I compare them as folder compare and ignore "1.5.2" and "1.6.2" parts of the file names. Here is what I did, some of regular expressions fails, only one give me correct answer.
A) Failure (Does not align):
1) Regular expression Align left file with (.*)1\.5\.4\.jar, right side with $1.\..\..\.jar
2) Regular expression Align left file with (.*)1\.5\.4\.jar, right side with $1.+\.jar
B) Success (Align):
Regular expression Align left file with (.*)1\.5\.4\.jar, right side with $1\1\.6\.2\.jar
I want to use general regular expression, so I can compare any file with version differences and do not need to edit regular expression.
Any idea?
Comment