I have a feed content type with an author(s) field. Some of the nodes have several authors, so I am able to explode the data into an array with feeds tamper. However, I'd also like to re-write the author entries from LAST_NAME, FIRST_NAME to FIRST_NAME LAST_NAME. Before I dive into writing a plugin, I was wondering if there were another option for this, it seems like a common use case.


You can use the REGEX find/replace plugin in Feeds Tamper to do it.

Find: ([^,]+),\s*([^,]+)

Replace: $2 $1

Note: The above regex is more-or-less a guess and assumes that there are no commas in the FIRST_NAME or LAST_NAME.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.