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
Asked
Active
Viewed 68 times
-1
-
1If you are asking for a regex, you may need to be more specific. – Hypnic Jerk Feb 07 '17 at 06:09
2 Answers
1
Find: #(.*?)#
Replace with: #{\1}

SMStroble
- 111
- 4
-
-
-
and suppose if i have continuous values like this #abcd#, #efgh#, its selecting the two values straightly. But i want each of those values selected separately – Madan Thunderfist Feb 07 '17 at 06:28
-
use #(.*?)# in the find box, the ? make it match the shortest string which satisfies the expression – SMStroble Feb 07 '17 at 06:30
-
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