Regular Expressions: "undefined group number 1"

I am trying to do a relatively simple search+replace as follows:

find:

([a-z])\.([A-Z])

replace with:

\1. \2

 

(The intent is to make sure that if a target segment has two or more clauses separated by a period, that period is followed by a space.)

(The reason why this is necessary: bad alignment, resulting in target segments such as:

This is a clause.This is another one.

 

However, Studio (2017) does not recognize the groups in the "replace with" field, claiming those groups are undefined; see screenshot:

Trados Studio Find and Replace dialog box showing an error message: The replace regular expression has an error and cannot be used: parsing '1.2' - Reference to undefined group number 1.

 

 This syntax would work in the regexp applications I'm used to. How is it different in Studio?



Generated Image Alt-Text
[edited by: Trados AI at 4:02 AM (GMT 0) on 5 Mar 2024]
emoji
Parents Reply Children