I have the following data in my file:
234xt_
yad42_
23ft3_
45gdw_
...
Where the _
means a space.
Using Notepad++ I want to rewrite it to be:
'234xt',
'yad42',
'23ft3',
'45gdw'
I am using the following regex in the "Find what" (^\w+)\s*\n
And in the "Replace with" field $0
,
But it is not working as expected.
$1
instead