Re: REGEX and Livecode

2013-01-05 Thread Dr. Hawkins
On Fri, Jan 4, 2013 at 6:50 PM, Robert Sneidar wrote: > I seem to recall some noise has being made in the past that bits of Linux > source >was actually copied from Unix source, but I don't think anyone ever actually >proved >that. At one point, Novell stated that they didn't think that there wa

Re: REGEX and Livecode

2013-01-04 Thread Robert Sneidar
>From the Linux Wiki: A 2001 study of Red Hat Linux 7.1 found that this distribution contained 30 million source lines of code. Using the Constructive Cost Model, the study estimated that this distribution required about eight thousand man-years of development time. According to the study, if a

Re: REGEX and Livecode

2013-01-03 Thread Dr. Hawkins
On Wed, Jan 2, 2013 at 11:39 AM, Peter Haworth wrote: > Thanks Peter. I'm a Mac guy so not familiar with the Linux terminology, > although I probably have the utilities you mentioned since OSX is Linux at > its core. *ack* No. Backwards. It would be fair to call Linux "unix at its core." Dar

Re: REGEX and Livecode

2013-01-02 Thread Peter Haworth
Thanks Kay, I came across regExhibit a couple of days ago and it's been my main learning tool. Before that I was using a very similar tool at http://www.gskinner.com/RegExr/. One thing I liked about that is that it allows you to save regexs with descriptions of what they do Pete lcSQL Software <

Re: REGEX and Livecode

2013-01-02 Thread J. Landman Gay
On 1/2/13 6:55 PM, Kay C Lan wrote: As you are on Mac I would highly recommend downloading the free Bwana: http://www.bruji.com/bwana/ This is a simple tool that loads the 'man' pages into Safari - these are the manual pages for the tools, basically like the LC Dictionary entries for each comma

Re: REGEX and Livecode

2013-01-02 Thread Kay C Lan
[Sent again because the first one was too long - too many previous posts included I guess] Peter H, Richmond, and anyone else on Mac looking for a stepping stone into grep, regex and Unix command line tools, whilst nothing Peter A said was wrong, unless you are only doing something very minor wit

Re: REGEX and Livecode

2013-01-02 Thread Peter M. Brigham
On Jan 2, 2013, at 6:57 AM, David C. wrote: > I think without question that they [regex] must be the most arcane, yet > powerful programming tools ever devised APL is surely a contender here, eg: R<-1000 (~RεRº_xR)/R<-1|iR gives you all the prime numbers less than 1000 (I had to approximate t

Re: REGEX and Livecode

2013-01-02 Thread Robert Sneidar
EEEK! Not anymore. It's full blown UNIX since Tiger if I am not mistaken. Bob On Jan 2, 2013, at 11:39 AM, Peter Haworth wrote: > Thanks Peter. I'm a Mac guy so not familiar with the Linux terminology, > although I probably have the utilities you mentioned since OSX is Linux at > its core. >

Re: REGEX and Livecode

2013-01-02 Thread Peter Haworth
Thanks Peter. I'm a Mac guy so not familiar with the Linux terminology, although I probably have the utilities you mentioned since OSX is Linux at its core. Pete lcSQL Software On Wed, Jan 2, 2013 at 12:20 AM, Peter Alcibiades < palcibiades-fi...@yahoo.co.uk> wrote: > Its

Re: REGEX and Livecode

2013-01-02 Thread David C.
> ...The real point of Linux however in terms of features is the shell, > and the > thing about this is that regex is like the air in the shell. Its all around > and being used all the time, and is accessible from anywhere. Any Linux > editor will support them. Geany is what I use, but Kate is

Re: REGEX and Livecode

2013-01-02 Thread Peter Alcibiades
Its a Linux thing. Linux is packaged up out of a huge number of components into actual systems known as 'distributions'. There are probably around 10-15 major distributions, and around 350 in total. A great many distributions are remixes of major ones for some specific purpose. Ubuntu is a dist

Re: REGEX and Livecode

2013-01-01 Thread Peter Haworth
Hi Peter, I'd be interested in looking at these buut not sure what you mean by "the repositories . I checked revONline but didn't find either of them there. Pete lcSQL Software On Tue, Jan 1, 2013 at 10:07 AM, Peter Alcibiades < palcibiades-fi...@yahoo.co.uk> wrote: > Ric

Re: REGEX and Livecode

2013-01-01 Thread Richmond
On 01/01/2013 08:07 PM, Peter Alcibiades wrote: Richmond, also have a look at txt2regex and regexxer. Should be in the repositories. To be honest, I can't be bothered, having worked out how to do all that is necessary for string manipulation without having to go near it. Peter -- View

Re: REGEX and Livecode

2013-01-01 Thread Peter Alcibiades
The way to think about regex is a bit different for a linux user. If you have stuff to do involving heavy text manipulation - finding, substituting, rearranging, then you need to know regex. It makes life much simpler, you can do things at the command line that you would otherwise have to write r

Re: REGEX and Livecode

2013-01-01 Thread Kay C Lan
Read the LC Dictionary entry for matchText. Regex IS already implemented in LC, if you care to use it. More importantly to you, as the dictionary states, it is PCRE library compatible, which to me means it is OS agnostic. All you need to do is learn the syntax (admittedly not trivial for some of t

Re: REGEX and Livecode

2012-12-31 Thread Robert Sneidar
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

Re: REGEX and Livecode

2012-12-31 Thread Richmond
On 12/31/2012 03:40 PM, David C. wrote: On Mon, Dec 31, 2012 at 4: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 earl

Re: REGEX and Livecode

2012-12-31 Thread David C.
On Mon, Dec 31, 2012 at 4: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 th