regex is completely general, which is why it is so powerful. And you can do anything with it. But I have a good feeling we can have a good LC solution.
I have a rough idea of putting a unique delimiter around the strings that need to be changed first, then just looking at those. so first convert
Code: Select all
Lorem ipsum dolor sit amet, 1234ABC consectetuer
adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore
zzril delenit 678XYZ augue duis dolore te feugait nulla
facilisi.
to
Code: Select all
Lorem ipsum dolor sit amet, •1234ABC• consectetuer
adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore
zzril delenit •678XYZ• augue duis dolore te feugait nulla
facilisi.
assuming • will not appear in text, then use • as the itemdelimiter, do the replace, then remove •
this way we have fewer items.
Just a rough thought. I have a project next few days but will dive in next week. Wishing all you great folks a happy weekend.