This part solved my problem in Samuel Wood’s comment:
But, you don’t want to replace the hash, you only want to replace the = with a LIKE. So, search for meta_key = ‘locations_ instead. See how I left off the % there? Now you can find it and replace it. Simple.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users