title: Regular Expression to move beginning of string to end in Notepad++
body: <p>I have a textfile like so:</p>
  
  <pre><code>marc_webber
  john_grisham
  rahmin_darfur
  firstname_lastname
  </code></pre>
  
  <p>I want the output to be like this (forget about double names like "van These"):</p>
  
  <pre><code>Webber, Marc, marc_webber
  Grisham, John, john_grisham
  Darfur, Rahmin, rahmin_darfur
  LastName, FirstName, firstname_lastname
  </code></pre>
  
  <p>So I want to split the strings at the <strong>_</strong>, 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 <strong>Notepad++'s find and replace feature with regular expressions</strong>.<br>
  Basically I would need to create variables for the first name and the last name and string them together again in the end.</p>