RE: filter list_of_files with REGEX xyz?
Let them eat cake. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Friday, August 17, 2018 4:39 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: filter list_of_files with REGEX xyz? Half want cake, the other half, pie. Bob S > On Aug 17, 2018, at 09:45 , Mark Wieder via use-livecode wrote: > > On 08/17/2018 08:54 AM, Ralph DiMola via use-livecode wrote: >> True true... I thought about it but left it as is just in case there >> was an image without a file name before the ".". I did not want it to be missed. >> You know users... > > LOL > > -- > 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://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
Half want cake, the other half, pie. Bob S > On Aug 17, 2018, at 09:45 , Mark Wieder via use-livecode > wrote: > > On 08/17/2018 08:54 AM, Ralph DiMola via use-livecode wrote: >> True true... I thought about it but left it as is just in case there was an >> image without a file name before the ".". I did not want it to be missed. >> You know users... > > LOL > > -- > 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://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
On 08/17/2018 08:54 AM, Ralph DiMola via use-livecode wrote: True true... I thought about it but left it as is just in case there was an image without a file name before the ".". I did not want it to be missed. You know users... LOL -- 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://lists.runrev.com/mailman/listinfo/use-livecode
RE: filter list_of_files with REGEX xyz?
True true... I thought about it but left it as is just in case there was an image without a file name before the ".". I did not want it to be missed. You know users... Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Wieder via use-livecode Sent: Friday, August 17, 2018 11:41 AM To: Ralph DiMola via use-livecode Cc: Mark Wieder Subject: Re: filter list_of_files with REGEX xyz? On 08/17/2018 07:13 AM, Ralph DiMola via use-livecode wrote: > filter tList with regex pattern "(?i).*\.(jpe?g|png|gif)$" For a file list that should probably be filter tList with regex pattern "(?i).+\.(jpe?g|png|gif)$" unless you explicitly want to see file names that start with "." -- 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://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
On 08/17/2018 07:13 AM, Ralph DiMola via use-livecode wrote: filter tList with regex pattern "(?i).*\.(jpe?g|png|gif)$" For a file list that should probably be filter tList with regex pattern "(?i).+\.(jpe?g|png|gif)$" unless you explicitly want to see file names that start with "." -- 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://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
I was going to send the whole line but Hermann has beaten me to it - and I will use his version from now on, thanks Hermann. Lagi On Fri, 17 Aug 2018 at 15:03, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Hermann, > > > Am 17.08.2018 um 15:58 schrieb hh via use-livecode < > use-livecode@lists.runrev.com>: > > > > This is already case-insensitive, but the period needs an escape: > > > > filter tList with regex pattern "\.*(jpe?g|png|gif)$" > > ah, jetzt ja! :-) > Thanks a lot! > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
I used (without the gif) .*\.jpj|jpeg|png|gif The above is not case sensitive - just tested it Lagi On Fri, 17 Aug 2018 at 14:45, Ralph DiMola via use-livecode < use-livecode@lists.runrev.com> wrote: > (?i) turn off case sensitivity for everything after it in the regex > expression. (?-i) turns it back on again for everything after it. > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > Behalf Of Brian Milby via use-livecode > Sent: Friday, August 17, 2018 9:19 AM > To: How to use LiveCode > Cc: Brian Milby > Subject: Re: filter list_of_files with REGEX xyz? > > RegEx pattern > Sorry, I was just giving the pattern, not the syntax. > Also, it will probably be case sensitive in that format. I won’t be able > to test until later. I don’t recall the case insensitive flag off hand. > > Thanks, > Brian > On Aug 17, 2018, 8:15 AM -0500, Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>, wrote: > > Hi Brian, > > > > > Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode < > use-livecode@lists.runrev.com>: > > > > > > Pattern “*.(jpe?g|png|gif)” > > > > thanks, but that does not work!? > > > > I tried: > > on mouseUp pMouseButton > > answer folder "sdsdsdsd" > > put it into tFolder > > put files(tFolder) into tList > > filter tList with pattern "*.(jpe?g|png|gif)" > > answer tList > > end mouseUp > > > > tList = EMPTY, I made of course sure there are JPG, PNG and GIF files in > that folder. > > > > Same when I use: > > ... > > filter lines of tList with pattern "*.(jpe?g|png|gif)" > > ... > > Any clues? > > > > > Thanks, > > > > You're welcome! :-) > > > > > Brian > > > On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>, wrote: > > > > Hi friends, > > > > > > > > I know how to: > > > > ... > > > > filter list_of_files with "*.jpg" > > > > ... > > > > But REGEX stuff is way over my head. :-/ Can anyone provide the > > > > regex/pattern syntax for filtering jpg, png etc. in ONE run? Know > > > > what I mean? > > > > Best > > > > Klaus > > > > -- > > Klaus Major > > http://www.major-k.de > > kl...@major-k.de > > > > > > ___ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: filter list_of_files with REGEX xyz?
The ".*" is the wild card(zero or more) and "\." Is the period. filter tList with regex pattern "(?i).*\.(jpe?g|png|gif)$" Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of hh via use-livecode Sent: Friday, August 17, 2018 9:58 AM To: use-livecode@lists.runrev.com Cc: hh Subject: Re: filter list_of_files with REGEX xyz? This is already case-insensitive, but the period needs an escape: filter tList with regex pattern "\.*(jpe?g|png|gif)$" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: filter list_of_files with REGEX xyz?
Let’s try this again... Regex pattern “.*\.(jpe?g|png)$” . - any character * - any number of previous match term ? - 0 or 1 of previous term \. - escapes the period for literal match () - groups terms | - alternates within group $ - end of line Thanks, Brian On Aug 17, 2018, 8:45 AM -0500, Ralph DiMola via use-livecode , wrote: > (?i) turn off case sensitivity for everything after it in the regex > expression. (?-i) turns it back on again for everything after it. > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Brian Milby via use-livecode > Sent: Friday, August 17, 2018 9:19 AM > To: How to use LiveCode > Cc: Brian Milby > Subject: Re: filter list_of_files with REGEX xyz? > > RegEx pattern > Sorry, I was just giving the pattern, not the syntax. > Also, it will probably be case sensitive in that format. I won’t be able to > test until later. I don’t recall the case insensitive flag off hand. > > Thanks, > Brian > On Aug 17, 2018, 8:15 AM -0500, Klaus major-k via use-livecode > , wrote: > > Hi Brian, > > > > > Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode > > > : > > > > > > Pattern “*.(jpe?g|png|gif)” > > > > thanks, but that does not work!? > > > > I tried: > > on mouseUp pMouseButton > > answer folder "sdsdsdsd" > > put it into tFolder > > put files(tFolder) into tList > > filter tList with pattern "*.(jpe?g|png|gif)" > > answer tList > > end mouseUp > > > > tList = EMPTY, I made of course sure there are JPG, PNG and GIF files in > > that folder. > > > > Same when I use: > > ... > > filter lines of tList with pattern "*.(jpe?g|png|gif)" > > ... > > Any clues? > > > > > Thanks, > > > > You're welcome! :-) > > > > > Brian > > > On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode > > > , wrote: > > > > Hi friends, > > > > > > > > I know how to: > > > > ... > > > > filter list_of_files with "*.jpg" > > > > ... > > > > But REGEX stuff is way over my head. :-/ Can anyone provide the > > > > regex/pattern syntax for filtering jpg, png etc. in ONE run? Know > > > > what I mean? > > > > Best > > > > Klaus > > > > -- > > Klaus Major > > http://www.major-k.de > > kl...@major-k.de > > > > > > ___ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
Hi Hermann, > Am 17.08.2018 um 15:58 schrieb hh via use-livecode > : > > This is already case-insensitive, but the period needs an escape: > > filter tList with regex pattern "\.*(jpe?g|png|gif)$" ah, jetzt ja! :-) Thanks a lot! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
This is already case-insensitive, but the period needs an escape: filter tList with regex pattern "\.*(jpe?g|png|gif)$" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: filter list_of_files with REGEX xyz?
(?i) turn off case sensitivity for everything after it in the regex expression. (?-i) turns it back on again for everything after it. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 17, 2018 9:19 AM To: How to use LiveCode Cc: Brian Milby Subject: Re: filter list_of_files with REGEX xyz? RegEx pattern Sorry, I was just giving the pattern, not the syntax. Also, it will probably be case sensitive in that format. I won’t be able to test until later. I don’t recall the case insensitive flag off hand. Thanks, Brian On Aug 17, 2018, 8:15 AM -0500, Klaus major-k via use-livecode , wrote: > Hi Brian, > > > Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode > > : > > > > Pattern “*.(jpe?g|png|gif)” > > thanks, but that does not work!? > > I tried: > on mouseUp pMouseButton > answer folder "sdsdsdsd" > put it into tFolder > put files(tFolder) into tList > filter tList with pattern "*.(jpe?g|png|gif)" > answer tList > end mouseUp > > tList = EMPTY, I made of course sure there are JPG, PNG and GIF files in that > folder. > > Same when I use: > ... > filter lines of tList with pattern "*.(jpe?g|png|gif)" > ... > Any clues? > > > Thanks, > > You're welcome! :-) > > > Brian > > On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode > > , wrote: > > > Hi friends, > > > > > > I know how to: > > > ... > > > filter list_of_files with "*.jpg" > > > ... > > > But REGEX stuff is way over my head. :-/ Can anyone provide the > > > regex/pattern syntax for filtering jpg, png etc. in ONE run? Know > > > what I mean? > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
Hi Brian, > Am 17.08.2018 um 15:19 schrieb Brian Milby via use-livecode > : > > RegEx pattern > Sorry, I was just giving the pattern, not the syntax. > Also, it will probably be case sensitive in that format. My suffixes are all lower case, so this shouldn't matter here. > I won’t be able to test until later. I don’t recall the case insensitive flag > off hand. No joy :-/ If I use: ... filter tList with regex pattern "*.(jpe?g|png|gif)" ... or ... filter lines of tList with regex pattern "*.(jpe?g|png|gif)" ... I get an error: button "Button": execution error at line 8 (matchChunk: error in pattern expression), char 1 > Thanks, > Brian Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
RegEx pattern Sorry, I was just giving the pattern, not the syntax. Also, it will probably be case sensitive in that format. I won’t be able to test until later. I don’t recall the case insensitive flag off hand. Thanks, Brian On Aug 17, 2018, 8:15 AM -0500, Klaus major-k via use-livecode , wrote: > Hi Brian, > > > Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode > > : > > > > Pattern “*.(jpe?g|png|gif)” > > thanks, but that does not work!? > > I tried: > on mouseUp pMouseButton > answer folder "sdsdsdsd" > put it into tFolder > put files(tFolder) into tList > filter tList with pattern "*.(jpe?g|png|gif)" > answer tList > end mouseUp > > tList = EMPTY, I made of course sure there are JPG, PNG and GIF files in that > folder. > > Same when I use: > ... > filter lines of tList with pattern "*.(jpe?g|png|gif)" > ... > Any clues? > > > Thanks, > > You're welcome! :-) > > > Brian > > On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode > > , wrote: > > > Hi friends, > > > > > > I know how to: > > > ... > > > filter list_of_files with "*.jpg" > > > ... > > > But REGEX stuff is way over my head. :-/ > > > Can anyone provide the regex/pattern syntax for filtering > > > jpg, png etc. in ONE run? Know what I mean? > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
Hi Brian, > Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode > : > > Pattern “*.(jpe?g|png|gif)” thanks, but that does not work!? I tried: on mouseUp pMouseButton answer folder "sdsdsdsd" put it into tFolder put files(tFolder) into tList filter tList with pattern "*.(jpe?g|png|gif)" answer tList end mouseUp tList = EMPTY, I made of course sure there are JPG, PNG and GIF files in that folder. Same when I use: ... filter lines of tList with pattern "*.(jpe?g|png|gif)" ... Any clues? > Thanks, You're welcome! :-) > Brian > On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode > , wrote: >> Hi friends, >> >> I know how to: >> ... >> filter list_of_files with "*.jpg" >> ... >> But REGEX stuff is way over my head. :-/ >> Can anyone provide the regex/pattern syntax for filtering >> jpg, png etc. in ONE run? Know what I mean? Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: filter list_of_files with REGEX xyz?
Pattern “*.(jpe?g|png|gif)” Thanks, Brian On Aug 17, 2018, 6:44 AM -0500, Klaus major-k via use-livecode , wrote: > Hi friends, > > I know how to: > ... > filter list_of_files with "*.jpg" > ... > But REGEX stuff is way over my head. :-/ > > Can anyone provide the regex/pattern syntax for filtering > jpg, png etc. in ONE run? Know what I mean? > > Thanks a lot in advance! > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
filter list_of_files with REGEX xyz?
Hi friends, I know how to: ... filter list_of_files with "*.jpg" ... But REGEX stuff is way over my head. :-/ Can anyone provide the regex/pattern syntax for filtering jpg, png etc. in ONE run? Know what I mean? Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode