5

I have to replace "something" in file with :something. My editor is kate can anyone suggest a search expression and placeholder for that.

Example

Input

"code"
"name"
"remark"

Output

:code
:name
:remark
Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Biju CD
  • 4,999
  • 11
  • 34
  • 55

3 Answers3

12

search for "(\w+)", replace with :\1

dfa
  • 114,442
  • 31
  • 189
  • 228
3

search: (something)
replace: :\1

Vitaly Dyatlov
  • 1,872
  • 14
  • 24
0

Why isn't a simple search and replace suitable? pattern: something replace: :something

erenon
  • 18,838
  • 2
  • 61
  • 93