Suppose I have the following text in a field:
Code: Select all
abcd
bcds
zaaad
Code: Select all
b•cds
bb•cd
zaa•ad
If we had full regex with backreferencing, I would change
.d to •&
But in LiveCode we cannot use backreferencing, so I need to use a loop to find every instance with matchchunk, then do a replacetext.
My aim is to achieve the above substitution in the fastest way possible in LiveCode
I thought I could use lookahead, so that the search expression is non-selecting. so replace
(?=.d) with •
But it seems non-selected text cannot be replaced.
Any comments appreciated.