Search found 789 matches

by Thierry
Fri Jan 10, 2014 11:05 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to determine Commercial or Community versions.
Replies: 33
Views: 14586

Re: How to determine Commercial or Community versions.

AndyP wrote: As usual with LiveCode many alternate ways to solve a problem.. :wink:
TMTOWTDI

A very old mantra which applies to most of dynamic modern languages
including Livecode :wink:

By the way, I like Mark's one :)


Regards,

Thierry
by Thierry
Fri Jan 10, 2014 8:35 am
Forum: IDE Contributors
Topic: Open Source IDE?
Replies: 15
Views: 22706

Re: Open Source IDE?

Got it!

Thanks Monte.
by Thierry
Fri Jan 10, 2014 7:29 am
Forum: IDE Contributors
Topic: Open Source IDE?
Replies: 15
Views: 22706

Re: Open Source IDE?

https://github.com/runrev/livecode-ide/blob/master/IDE%20License.txt Thanks, Monte. Good move on their part. Thanks Monte for the link. But due to some neurologicgenetickarmalicensereading weakness, can't see where this MIT license is stated. :shock: Commercial license doesn't mean MIT , no? :roll:...
by Thierry
Thu Jan 09, 2014 9:53 am
Forum: IDE Contributors
Topic: Open Source IDE?
Replies: 15
Views: 22706

Re: Open Source IDE?

Hi Monte,
The IDE is open source and MIT licensed.
and
The engine is GPL and the IDE is MIT
So, IDE is "MIT and GPL" or only MIT?

Mind you pointing out where we can find the official statement?

I'm lost :(

Regards,

Thierry
by Thierry
Sun Jan 05, 2014 9:06 am
Forum: Internet
Topic: replaceText across line breaks
Replies: 2
Views: 3375

Re: replaceText across line breaks

Hi Sieg,
Can this regex be modified so that it will work even with CRs in the text?
Yes. Prefix your regex with (?ms); then the dot will match a cr..
I've tried a couple things in online regex testers that work but they fail in LiveCode.
Unfortunately, not that simple :(


HTH,

THierry
by Thierry
Sun Dec 15, 2013 8:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: c1p8 thinks t1,t2,t3,t4,t5? ヽ(=^・ω・^=)丿
Replies: 10
Views: 6239

Re: c1p8 thinks t1,t2,t3,t4,t5? ヽ(=^・ω・^=)丿

C1P8 thinks PERLMan
May the Regex Force be with you!

and enjoy the coming hollidays :)

Thierry
by Thierry
Sat Dec 14, 2013 6:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: c1p8 thinks t1,t2,t3,t4,t5? ヽ(=^・ω・^=)丿
Replies: 10
Views: 6239

Re: c1p8 thinks t1,t2,t3,t4,t5? ヽ(=^・ω・^=)丿

Hello Maria, Sparkout wakes me up to come here :) Ok, some thoughts: When testing the result of your regex, it would help to be a bit more precise, so you should have seen that your code with matchText() doesnt' exactly returns what you think. So you could try this one, instead: on mouseUp get match...
by Thierry
Sat Nov 30, 2013 1:21 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 13651

Re: Regular Expressions and matchText Help

SparkOut wrote:Thierry swings into action again!
LOL.. :)

Just apply a secret regex on your drawing...
regular_expressions2.png

Thierry
by Thierry
Sat Nov 23, 2013 12:02 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 13651

Re: Regular Expressions and matchText Help

Hi, Here I write the same regex as 2 posts above, but splitting the regex by part and trying to comment every step. Umm, let me know if it's easier to get into it then... One trick writting regex *in* Livecode (but be careful with it!): LC compiler being unhappy with: class=\"kfnt\" bgcolor=\" and t...
by Thierry
Fri Nov 22, 2013 6:12 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 13651

Re: Regular Expressions and matchText Help

Hi Thierry, Thank you!!! It works! You're welcome :) Yes, I know they are swapped because they are different. Even though they are different, your code works. It is exactly what I want. Yes, that's what I meant. Taking into account different patterns. I like the idea of r1+r2. You are clever. Well,...
by Thierry
Thu Nov 21, 2013 8:22 pm
Forum: Internet
Topic: Regular Expressions and matchText Help
Replies: 16
Views: 13651

Re: Regular Expressions and matchText Help

Hello Aras, I'm coming with a quick solution... Here I took 2 sets of your previous text samples and changed the values for testing: <td class="kfnt" bgcolor="#ffffff" height="20"> Aras fromTurkey</td> <td class="kfnt" bgcolor="#ffffff" height="20" width="107"> <p align="center">0,5</p> </td> <...
by Thierry
Sat Nov 09, 2013 9:25 am
Forum: Internet
Topic: Internet Library Question - How to retrieve every link?
Replies: 12
Views: 13453

Re: Internet Library Question - How to retrieve every link?

Great and very elegant function. Thanks. The attribute 'href' may be expanded by the attribute  'id', 'target', 'name' as these also give refs to jump to. Yes, I know. And even worse, you can have in your CSS this kind of reference too: div#header { background-image: url(images/sunny.jpg); :roll: }...
by Thierry
Fri Nov 08, 2013 6:37 pm
Forum: Talking LiveCode
Topic: Extracting sub strings from a string
Replies: 8
Views: 6625

Re: Extracting sub strings from a string

Simon Knight wrote:I have tried the code written by Thierry and it works a treat so I am off to the tutorial to find out how.
Hi Simon, Jacque and \w+,

This might be interesting to you:

http://forums.runrev.com/viewtopic.php?f=11&t=7462

somehow a very similar approach for a different goal..

Regards,

Thierry
by Thierry
Fri Nov 08, 2013 6:30 pm
Forum: Internet
Topic: Internet Library Question - How to retrieve every link?
Replies: 12
Views: 13453

Re: Internet Library Question - How to retrieve every link?

Hello, My try :) I've been putting more logic in the regex: function findLinks myhtml local tList -- regex: (?msi)<a\s.*?href\s*=\s*["']?([^'">\s]+)["']? put the regex of me into regex repeat while matchChunk( myhtml,regex,pStart,pEnd) put 0 into tList[char pStart to pEnd of myhtml] delete char 1 to...
by Thierry
Fri Nov 08, 2013 7:47 am
Forum: Talking LiveCode
Topic: Extracting sub strings from a string
Replies: 8
Views: 6625

Re: Extracting sub strings from a string

jacque wrote:Wow. I'll have to look up all that, Thierry. That's amazing.
Jacque,

One of the best place to learn *peacefully* how regular expression works:

http://www.regular-expressions.info/tutorial.html

Regards,

Thierry

Go to advanced search