The 2nd capture group collects the characters between the space and the newline. This allows for any number of names/initials prior to lastname, provided lastname is at the end of the line. Repl: \2, \1\n — insert 2nd capture (lastname) in front of first capture (all preceding names/initials) Reverse the conversion.
how to seal cracks in basement floor