Reputation: 5947
Essentially I have a set of name like
name1,
name2,
name3,
and I'd like to make it via find & replacement in notepad++
name1 = name1,
name2 = name2,
name3 = name3,
I have no problem find those name1 name2 in Find what:
[^\s,]+
But in Replace with , what should I do to replace ',' with "= whatever being find," ?
Thanks
Upvotes: 1
Views: 115
Reputation: 548
You can try using the following regex on search field:
^(\w+\d),
and the replace field:
$1 = $1,
Hope it help you!
Upvotes: 0
Reputation: 56829
Find what (assuming your regex finds what you want correctly): [^\s,]+
Replace with: $0 = $0
$0
means everything matched by the expression in "Find what"
Upvotes: 1