Tier 4 · Enchanterreplace
Surname First
Turn "Ada Lovelace" into "Lovelace, Ada".
In the replacement string, $1 and $2 stand for your capture groups. This is the whole reason capture groups exist.
Your pattern0 chars · par 17
//
Flags
Start typing — tests run as you go.0 of 3 visible tests passing
Test cases
Ada Lovelace→ "Lovelace, Ada"William Forty→ "Forty, William"Grace Hopper→ "Hopper, Grace"
+ 2 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.