To improve the following syntax:
filter(x β occursin(r"(?i).jpg|.png", x), readdir())
into
readdir(.jpg|.png)
Check out Glob.jl
3 Likes
Good, It is same to the glob in Perl.
BTW, Is it better to implant it into the Julia base package
Not really. If itβs in julia Base it can only be updated with a new version of Julia. If itβs in a package, it can be updated at any time. Things that do not have to be in base will rarely be put in base.
2 Likes