views:

162

answers:

3

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
A: 

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

erenon
+1  A: 

search: (something)
replace: :\1

Vitaly Dyatlov
+1  A: 

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

dfa
Yes its working.Any tutorial on this.
cdb
am expecting an explanation for "(\w+)" and \1.what r they
cdb
search tutorial grouping and back references
dfa
extremely useful thank u
cdb
@dfa can i use it through perl s/g
cdb