I have a textfile like so:
marc_webber
john_grisham
rahmin_darfur
firstname_lastname
我希望这一产出也一样(如“万象”这样的双重名称):
Webber, Marc, marc_webber
Grisham, John, john_grisham
Darfur, Rahmin, rahmin_darfur
LastName, FirstName, firstname_lastname
So I want to split the strings at the _, move the last name to the beginning and comma delimit first name and the concatenated name to the end (and maybe even capitalize the first letter).
This would be fairly easy with a programming language, but I want to know whether it is possible using Notepad++ s find and replace feature with regular expressions.
Basically I would need to create variables for the first name and the last name and string them together again in the end.