filter list_of_files with REGEX xyz?

Brian Milby brian at milby7.com
Fri Aug 17 09:19:12 EDT 2018


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 at lists.runrev.com>, wrote:
> Hi Brian,
>
> > Am 17.08.2018 um 14:40 schrieb Brian Milby via use-livecode <use-livecode at 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 at 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
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list