# 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beyondcompare.gitbook.io/project/sync-folders/examples-of-regex-filename-alignment-overide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
