I'm struggling with the regex for an alignment override on a folder compare.
I would like:
env-dev.properties = env-uat.properties
applicationContext-dev.xml = applicationContext-uat.xml
I can almost get it to work using:
Left: ^(.+?)(-dev)(.+?)$
Right: $1$3
Regular expressions checked.
With that I can match:
env-dev.properties = env.properties
But I don't know hot to exclude "-uat" on the right side.
(or allow it to match in the righ-hand result)
I tried right: $1(-uat)$3
but it doesn't seem to match anything.
Any suggestions?
I would like:
env-dev.properties = env-uat.properties
applicationContext-dev.xml = applicationContext-uat.xml
I can almost get it to work using:
Left: ^(.+?)(-dev)(.+?)$
Right: $1$3
Regular expressions checked.
With that I can match:
env-dev.properties = env.properties
But I don't know hot to exclude "-uat" on the right side.
(or allow it to match in the righ-hand result)
I tried right: $1(-uat)$3
but it doesn't seem to match anything.
Any suggestions?
Comment