Search found 240 matches

by kaveh1000
Sun Jul 14, 2019 6:54 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

Mark, every real world problem is different. so we cannot predict what comes next. this was just a quick example to show that we cannot guarantee that each item is a word. I am going to have another think and come back. On this particular point, it was blue sky. But it shows that whatever delimiters...
by kaveh1000
Sun Jul 14, 2019 11:13 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

Very good question Mark. Simple answer is that right now there is an assumption that the pattern is a word. But regex is totally general. The script fails if you have: Lorem ipsum dolor sit 1235ABCD1288ABCD feugait nulla facilisi. it is converted to: Lorem ipsum dolor sit ABCD 1235 feugait nulla fac...
by kaveh1000
Sat Jul 13, 2019 6:40 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

Thanks for the hints on the chars. But sometimes it is good to see the characters for debugging purposes, so I have used very arcane characters that I know will not occur. Mark, on the delimiter, I admit I was thinking aloud. Here is my "loud" thinking. Am I right that the speed increase in your cod...
by kaveh1000
Fri Jul 12, 2019 5:16 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

regex is completely general, which is why it is so powerful. And you can do anything with it. But I have a good feeling we can have a good LC solution. I have a rough idea of putting a unique delimiter around the strings that need to be changed first, then just looking at those. so first convert Lor...
by kaveh1000
Fri Jul 12, 2019 8:21 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

This is astonishing, Mark. Thank you again. A lot of food for thought. My first reaction: Making local variable to script variable does not have much or any effect Locking screen does not have much or any effect (there is only one screen update) but good practice This is a huge improvement, but it i...
by kaveh1000
Fri Jul 12, 2019 12:48 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

Thank you so much Mark. This is a great test. So I have produced a test stack, attached. There are 5000 line to change in the top field (4998 unique). This takes some 10 seconds on LiveCode. In BBEdit, using (\d+)([A-Z]+) > \2 \1 it is instantaneous (less than 1/4 sec I estimate). Regex is fast!! So...
by kaveh1000
Tue Jul 09, 2019 10:55 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

thank you Bogs. I have not tested it for speed and I have to say it's pretty fast. I will get a chance to do it in the next couple of weeks and will report back.
by kaveh1000
Tue Jul 09, 2019 7:32 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

Thanks Mark for taking the time to write that. That is a minimal example. My problem is when these are embedded in text and I want to replace all, so the text might be: Lorem ipsum dolor sit amet, 1234ABC consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore zzril d...
by kaveh1000
Mon Jul 08, 2019 8:10 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

He certainly has and he has been amazingly helpful on these forums. But this is a basic requirement in regex and it needs to be within LiveCode.
by kaveh1000
Mon Jul 08, 2019 4:54 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

I bow to your superior articulation sire.

Yes, that is exactly what I meant. I hope you agree it would be a real boost to have it. I am not sure of the complications in implementing it.
by kaveh1000
Mon Jul 08, 2019 1:55 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

Hi Mark Thanks for that. So we can use back-referencing in searching, but what I am looking for is to be able to replace text, e.g. to change: 1234ABC > ABC 1234 678XYZ > XYZ 678 so looking to use something like put replaceText(fld 1,(\d+)([A-Z]+),\2 \1) LiveCode does not allow \2 \1. The replace te...
by kaveh1000
Sat Jul 06, 2019 1:51 pm
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Re: Implementing full regex in LiveCode

That's some thesis! Do I understand it correctly that you are saying the syntax is not user friendly? If that is the case I fully agree with you. But it is *powerful* and *fast*. If LiveCode had full regex implemented, then we could put a great front end on it so it becomes less frightening. I have ...
by kaveh1000
Sat Jul 06, 2019 10:55 am
Forum: Talking LiveCode
Topic: Implementing full regex in LiveCode
Replies: 34
Views: 1340

Implementing full regex in LiveCode

This has been discussed on the forum a few times. LiveCode allows searching text using regex and identifying patterns found, but it misses a crucial part of standard regex, and that is replacement, using "back referencing". So you can search for the most complex patterns but you need a lot of work t...
by kaveh1000
Sat Jun 22, 2019 11:13 pm
Forum: Talking LiveCode
Topic: OpenStack not runnning
Replies: 17
Views: 711

Re: OpenStack not runnning

Hi folks Just a quick note to those on this thread, that Panos gave me a hack fix very quickly (deleting a custom property) that worked, and the bug has been confirmed: https://quality.livecode.com/show_bug.cgi?id=22193 I have no idea where the problem lies but the experts here might be interested. ...
by kaveh1000
Tue Jun 18, 2019 5:01 pm
Forum: Talking LiveCode
Topic: OpenStack not runnning
Replies: 17
Views: 711

Re: OpenStack not runnning

Thank you all, especially Klaus for hinting standalone is OK.

Bug reported:
https://quality.livecode.com/show_bug.cgi?id=22193

Go to advanced search