> For the complete documentation index, see [llms.txt](https://beyondcompare.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://beyondcompare.gitbook.io/project/sync-folders/examples-of-regex-filename-alignment-overide.md).

# RegEx Examples: Filename Alignment Overide

In BC, the syntax is more of an *ode* to Regex than it is full-on Unix Regex.&#x20;

From the menu, choosing `Rules->Misc->AlignmentOveride->[+]` we would put&#x20;

**LEFT** `(\w+)(\d+).txt`&#x20;

**RIGHT** `$1_$2.log`&#x20;

where the $1 and $2 are the captured text from the left side.&#x20;

The logic under the BC hood is roughly shown in the screenshot below.

![](/files/-Ll39RZbpZHCRwlCuj0H)

More RegEx examples:  <https://beyondcompare.gitbook.io/project/text-compare/how-to-use-regular-expressions-in-beyond-compare-to-ignore-trivial-differences-like-timestamps> &#x20;
