In BC, the syntax is more of an ode to Regex than it is full-on Unix Regex.
From the menu, choosing Rules->Misc->AlignmentOveride->[+] we would put
Rules->Misc->AlignmentOveride->[+]
LEFT (\w+)(\d+).txt
(\w+)(\d+).txt
RIGHT $1_$2.log
$1_$2.log
where the $1 and $2 are the captured text from the left side.
The logic under the BC hood is roughly shown in the screenshot below.
More RegEx examples: https://beyondcompare.gitbook.io/project/text-compare/how-to-use-regular-expressions-in-beyond-compare-to-ignore-trivial-differences-like-timestampsarrow-up-right
Last updated 6 years ago