Find & Replace: Regex - "replace only first match and ignore others"

Hi SDL community,

I'd like to find and capture only the first "text" in each segment and replace it with e.g. "paraghraph

Segment 1: In years of attending school, most of us have dealt with a number of different technical texts, or texts intended to educate the reader in a particular subject or skill through in-depth study and practice texts.(do not capture or even when matched, do no replace this one)

Segment 2: Technical texts, such as a chemistry textbook or car repair manual texts, which represents any verse or prose work meant to be instructional text.

What would be the regex for:

Find: ......

Replace: .....

Parents Reply Children
  • Problem: If we'd like to do this operation by Trados Find&Replace, it cuts the whole segment and repastes it, so tags are lost.

    Solution query: If we write an AHK file, runs a regex find/match only the ((\s[\d\w()/]+){3}\siçinde) string, gets it in the clipboard and brings the cursor at the end of the string "olarak," and pastes what's in the clipboard. Then I suppose tags would not be affected.

    Is there a way/script in AHK to bring the cursor at the end of a certain word/string? What do you think, would it work?