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

Insert Curly Brackets Before and After a Number

Community Beginner ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

Hi,

I'm working on a project which includes paragraphs starting with numbers as follows:

Screen Shot 2021-11-23 at 12.38.59.png

I want to insert curly brackets before and after the number but I don't want to do it manually. Is there any easier way to do this change?

TOPICS
How to

Views

277

Translate

Translate

Report

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

Explorer , Nov 23, 2021 Nov 23, 2021

Try a grep Find/Change: find ^\d+ and replace with ($0)

Votes

Translate

Translate
Community Expert ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

Yo can do this with a list, but seeing your screenshot, it seems that you do not use a list.

Capture d’écran 2021-11-23 à 11.00.07.jpg

Votes

Translate

Translate

Report

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 ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

LATEST

Unfortunately, I'm working on a text that does not use a list. 

Votes

Translate

Translate

Report

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
Explorer ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

Try a grep Find/Change: find ^\d+ and replace with ($0)

Votes

Translate

Translate

Report

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 ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

Thanks a lot! It worked. 

Votes

Translate

Translate

Report

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