-1

Im trying to replace the this pattern #abcd# to #{abcd} in notepad++, is there anyway i can make use of search and replace option in notepad++ for this

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
Madan Thunderfist
  • 193
  • 1
  • 2
  • 14

2 Answers2

1

Find: #(.*?)#

Replace with: #{\1}

SMStroble
  • 111
  • 4
0

In Find box type: #(abcd)# In Replace type: #{\1}

\1 represents the first capture group as it is . in your case it is (abcd) excluding ()

you can replace abcd with any search string you like.

Abdul Hameed
  • 1,025
  • 12
  • 27