0

How to convert Ctrl+(any letter) to «Ctrl+(any letter)»?

I need like this:

Ctrl+T
Ctrl+D
etc.

Convert to:

«Ctrl+T»
«Ctrl+D»
etc.

I tried replacing this (Ctrl\+.) with (Ctrl\+[a-zA-Z]), but the result is Ctrl+[a-zA-Z].

moninah
  • 29
  • 6

2 Answers2

2

Find what:

(Ctrl\+[a-zA-Z])

Replace with:

«\1»

Make sure Search mode 'Regular expression' is selected.

alex-dl
  • 802
  • 1
  • 5
  • 12
1

You can use the full match $0 in the replacement.

Find what:

Ctrl\+[a-zA-Z]

Replace with

«$0»

enter image description here

Note that if you don't want any partial word matches you can use word boundaries \b

\bCtrl\+[a-zA-Z]\b
The fourth bird
  • 154,723
  • 16
  • 55
  • 70