Steve
Steve

Reputation: 119

Match LAST_NAME, FIRST_NAME and replace with FIRST_NAME LAST_NAME with regular expressions

I haven't had to use regular expressions in some time, I find myself trying

(?<lastName>[A-Za-z]+\,) (?<firstName>[A-Za-z]+)

as a matching pattern, but I think I'm going down the wrong path, let alone the replacement pattern, which is why I thought I would return pattern names.

Upvotes: 0

Views: 154

Answers (1)

Rohit Jain
Rohit Jain

Reputation: 213271

Replace:

([a-zA-Z]+), ([a-zA-Z]+)

with:

$2 $1

Upvotes: 1

Related Questions