Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Colin Holgate via use-livecode
In that book I wrote there is a chapter on making a web scraper, something that could pull images and other media from a web page. I soon found all the articles talking about not using regex with HTML, so I used a mixture of techniques instead. Here’s the first part I wrote about it: “A common

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Mark Wieder via use-livecode
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lis

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Bob Sneidar via use-livecode
That was it! LOL! Bob S > On Aug 13, 2018, at 09:28 , J. Landman Gay via use-livecode > wrote: > > I You can't parse html with regex: > > https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags# > > See the top accepted answer. > -- > Jacqueline La

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread J. Landman Gay via use-livecode
I You can't parse html with regex: https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags# See the top accepted answer. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 13, 2018 11:12:53

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
…ad insanem regexum - maybe his tin-foil hat slipped off. Keith > On 13 Aug 2018, at 17:11, Bob Sneidar via use-livecode > wrote: > > Someone did a great article on using regex to parse csv files or some such > thing, and was making the case why it couldn't be done, and in the middle of > a

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Bob Sneidar via use-livecode
Someone did a great article on using regex to parse csv files or some such thing, and was making the case why it couldn't be done, and in the middle of attempting to explain it, the author loses his mind. It was pretty funny. Bob S > On Aug 13, 2018, at 09:01 , Keith Clarke via use-livecode

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
Indeed, especially when anything regexy should be viewed from a safe distance - ideally from behind the couch …in a tin-foil hat! > On 13 Aug 2018, at 16:54, Mark Wieder via use-livecode > wrote: > > On 08/13/2018 08:51 AM, Keith Clarke via use-livecode wrote: >> Thanks Mark - that fixed it (a

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Mark Wieder via use-livecode
On 08/13/2018 08:51 AM, Keith Clarke via use-livecode wrote: Thanks Mark - that fixed it (as in, the simpler approach of dropping the brackets). Being ‘regex-phobic', I hadn’t picked up the subtle difference between wildcards and ‘formal’ regex in the doc examples. ;-) Yeah, it's pretty subt

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
Thanks Mark - that fixed it (as in, the simpler approach of dropping the brackets). Being ‘regex-phobic', I hadn’t picked up the subtle difference between wildcards and ‘formal’ regex in the doc examples. ;-) Thanks & regards, Keith > On 13 Aug 2018, at 16:38, Mark Wieder via use-livecode >

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Mark Wieder via use-livecode
On 08/13/2018 08:32 AM, Keith Clarke via use-livecode wrote: Folks, I’m trying to filter a list of comma-delimited values to include only the lines that contain a string - somewhere in any of the items. What’s wrong with this syntax - it’s currently returning no lines when I can see tString in

How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
Folks, I’m trying to filter a list of comma-delimited values to include only the lines that contain a string - somewhere in any of the items. What’s wrong with this syntax - it’s currently returning no lines when I can see tString in the second line of the variable? filter lines of tList with "