I have managed to do what I have wanted but using a lot of acrobatics, multiple loops, etc. And this spoils the other beautiful features of LiveCode that save so much time normally.
The only solution right now as far as I can see is Thierry's sunnYrex:
https://sunny-tdz.com/livecode/sunnyrex
but it would be good to have this built into LiveCode.
What is required in having this implemented? Is it a matter of implementing the latest PCRE?
For those who are much cleverer than me on this list but have declared their fear of regex, if you support me in getting this implemented in LiveCode I promise to write a simple guide to regex and to make some tutorial videos and I promise you will love using it.

Sorry if too much rant!
Kaveh