Hi Stam
I am a bit late to the party, but interested in what you are doing, and happy to contribute. You are aware that LiveCode can search for regex patterns but cannot use backreferencing, e.g. \1\2, etc. This is a major gap. someone mentioned Thierry, who has implemented full regex replace and it works well, but as it is not open, I cannot be dependent on it. So I have written my own (basic) replace with backreferencing.
Something I am trying to work out right now is whether LiveCode can use backreferencing in the search pattern. For instance if I want to find duplicated lines in this string:
I would search for
I think not. Again something I would do very quickly in another system needs extra work in LiveCode.
It would be wonderful if LiveCode could have full built in regex search and replace, and I am happy to contribute if I can.
Finally, I agree wholeheartedly with regex101. I use it all the time and the fact that you can save each pattern is amazing, e.g. my example here:https://regex101.com/r/bf0xuA/1.
I am a bit late to the party, but interested in what you are doing, and happy to contribute. You are aware that LiveCode can search for regex patterns but cannot use backreferencing, e.g. \1\2, etc. This is a major gap. someone mentioned Thierry, who has implemented full regex replace and it works well, but as it is not open, I cannot be dependent on it. So I have written my own (basic) replace with backreferencing.
Something I am trying to work out right now is whether LiveCode can use backreferencing in the search pattern. For instance if I want to find duplicated lines in this string:
CODE:
...onetwotwothree...
CODE:
^(.+)\n\1
It would be wonderful if LiveCode could have full built in regex search and replace, and I am happy to contribute if I can.
Finally, I agree wholeheartedly with regex101. I use it all the time and the fact that you can save each pattern is amazing, e.g. my example here:https://regex101.com/r/bf0xuA/1.
Statistics: Posted by kaveh1000 — Sat Aug 31, 2024 12:00 pm