Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Search and replace by GREP - keeping original letters

Community Beginner ,
Jan 09, 2026 Jan 09, 2026

Hi!
I have looked around in the community and found a few topics, which I must admit I did not understand. (I am far from "code wizard"...)
What I want to do is replace one or more characters etc, but keep others. I believe this can be done in GREP, but my attempts have been unsuccessful.
Example:
Search for "(any lowercase letter) (any uppercase letter)" - with a space in the middle.
Change to "(the found lowercase letter)./r(the found uppercase letter)" - thus insert a full stop and a new paragraph instead of the space, but keeping the two letters surrounding it.

a R
becomes
a.
R

Grateful for instructions. 🙏


TOPICS
How to , Scripting , Type
172
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jan 09, 2026 Jan 09, 2026

Capture d’écran 2026-01-10 à 00.04.05.png

 

(^/)

Translate
Guide ,
Jan 09, 2026 Jan 09, 2026

Find: (\l)\h(\u)

Replace by: $1.\r$2

 

(^/)  The Jedi

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 09, 2026 Jan 09, 2026

Thank you, especially for your quick reply.
Unfortunately, I only get the dollar sign, not the letter;

$1.
$2
Either typing "$1" or choosing "found1" - same result.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 09, 2026 Jan 09, 2026

Capture d’écran 2026-01-10 à 00.04.05.png

 

(^/)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 10, 2026 Jan 10, 2026
LATEST

OK. Tried again. Putting the find variables within brackets manually made the trick.
Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines