View Single Post
 
Old 06-27-2019, 09:53 AM
kilroy kilroy is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Sep 2016
Location: Southern Ontario
Posts: 118
kilroy is on a distinguished road
Default

Try this:

Find: ([A-Z]. [A-Z]. )([A-Z]{1}[a-z]{1,}-[A-Z]{1}[a-z]{1,})------(works for R. M. Johnson-Hulk – run first)
Replace: \2, \1

Find: ([A-Z]. )([A-Z]{1}[a-z]{1,}-[A-Z]{1}[a-z]{1,}) -----(worksfor M. Johnson-Hulk –run second)
Replace: \2, \1

Find: ([A-Z][. ]) ([A-Z][. ]) ([A-Z]{1}[a-z]{1,}) ----(Worksfor R. M. Johnson – run third)
Replace: \3, \1, \2

Find: ([A-Z]. )([A-Z]{1}[a-z]{1,}) -----(Works for J. Smith– run last)
Replace: \2, \1


Last edited by kilroy; 06-27-2019 at 01:15 PM. Reason: spacing
Reply With Quote