-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
  • 561,645
  • 34
  • 376
  • 476

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
  • 953
  • 10
  • 26