Page 1 of 1

Need to swap two words that are within parentheses

PostPosted: Wed Mar 07, 2018 1:59 am
by tempguest
How would I accomplish this.

From:
CityName (FirstName LastName)


To:
CityName (LastName, FirstName)

Re: Need to swap two words that are within parentheses

PostPosted: Wed Mar 07, 2018 2:14 am
by tempguest
Figured it out myself.


Code: Select all
Match:
(.*) \((.*) (.*)\)
Replace:
\1 (\3, \2)