Yes, it is possible.
Let's say that you have some data that looks as follows:
To match transaction code values, you need to remove the trailing 2 characters from the right-side value.
We have an NRL rule to remove leading characters from a text value, but we don't have a rule (yet) to remove trailing characters.
The following regex will give the desired result:
The pattern is: .*(?=.{2}$)
The number in blue specifies the number of characters to remove. For example, if you wanted to remove the trailing 5 characters, the pattern would be: .*(?=.{5}$)
The results are as follows: