You're welcome, @orsini. Unfortunately, I can only guess as to why the method I showed you didn't work for you without seeing the macro in question. I'm also not sure exactly how your remark about slightly more complex modifications differs from your original question, as unless I'm missing something, the method I demonstrated should work for that use case too (albeit with a different regex, of course). If you haven't yet, I suggest reading this post and following its advice for your next post, as it will save you and anyone else who tries to help you a good amount of time: