REGEX and Livecode
slylabs13 at me.com
Mon Dec 31 12:12:19 CST 2012
One of the reasons Regex is useful is a lot of SQL implementations support it. I suppose in theory at least, anything you can do with Regex, you can write a function to do in Livecode, but I am not so sure you could say the opposite. It really comes down to this. There are simple one liner Regex commands that are not too difficult, that would take conditional statements inside a loop in livecode to accomplish. Someone already familiar with Regex would probably prefer Regex in that case.
> Because REGEX expressions do NOT seem to be written in whatever name
> the RR/LC language is going by at the moment (HyperTalk, MetaTalk, RevTalk, Transcript,
> Revolution. Livecode ???).
We should just start calling it RadScript and be done with it. That might get the attention of the younger crowd.
On Dec 31, 2012, at 2:55 AM, Richmond wrote:
> Sorry chaps to start a new thread on this, but, somehow lost track of the last one :(
> Having 'swallowed my pride' and accepted that there MIGHT be more to REGEX than
> pattern matching, as I outlined in earlier postings, I had a look at the URLs various people on the
> Use-List provided:
> Finding this one fairly thought provoking: http://www.regular-expressions.info/quickstart.html
> My thoughts were provoked in 2 ways:
> 1. REGEX seems useful.
> 2. How does one use REGEX within Livecode (and, my inevitable rider; cross-platform) ?
> Now, as a mono-maniac for Livecode (i.e. I don't use any other programming languages
> on a regular basis) I am only going to go to the bother (and there does seem to be quite a bit of that)
> to learn REGEX if:
> 1. It can be, somehow, integrated into Livecode.
> 2. It will serve me better than the way I am doing things at the moment (pace earlier postings).
> Call me "an awkward sausage" if you will; but, I suspect that those thoughts may, in part at least,
> reflect the thoughts of a lot of the "silent masses" who would like to do all sorts of jolly data
> sorting and/or modification with Livecode.
> Further to this, I would like to point out this:
> [ admittedly it does not, directly, refer to unicodeText fields; but that, as I have already found out,
> can be dealt with comparatively easily ]
> which makes me wonder why one needs to go and "bang one's head against the wall" of REGEX.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode