find string, delete whole line ans replace with string only
Posted: Wed Dec 04, 2019 5:26 pm
Hello:
what I am trying to do:
find: ^.*(string in middle of line)?$
replace (string in middle of line
real stuff - find string "SMTP:xxxxxxx@vbelcas.mail.onmicrosoft.com" and delete everyting else on line
find:
^.*($smtp:[a-z1-9]{7}@vbelcas.mail.onmicrosoft.com)?$
that works so far
the replace I can't get right
tried:
$1
/1
\g1
$&
what am I doing wrong?
Thank in advance!
what I am trying to do:
find: ^.*(string in middle of line)?$
replace (string in middle of line
real stuff - find string "SMTP:xxxxxxx@vbelcas.mail.onmicrosoft.com" and delete everyting else on line
find:
^.*($smtp:[a-z1-9]{7}@vbelcas.mail.onmicrosoft.com)?$
that works so far
the replace I can't get right
tried:
$1
/1
\g1
$&
what am I doing wrong?
Thank in advance!