Got things working. Named capture groups are preserved.