@DanThomas Thanks for the input. I believe the global modifier is also not assumed by KM and I forgot about that. I have come across this issue before and remember this post Feature request: RegEx search global modifier - #2 by JMichaelTX that explains this. I did try the (?m) and that didn't make a difference - but I'm having a bit more luck with the global modifier and the For Each action - but I haven't quite solved it yet.