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


i haven't had use regular expressions in time, find myself trying

(?<lastname>[a-za-z]+\,) (?<firstname>[a-za-z]+) 

as matching pattern, think i'm going down wrong path, let alone replacement pattern, why thought return pattern names.

replace:

([a-za-z]+), ([a-za-z]+) 

with:

$2 $1 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -