It makes the pattern a bit ugly, but you can definitely do it with path.Match https://go.dev/play/p/zi6nh8Vj9LF
On Fri, 4 Nov 2022 at 09:20, pat2...@gmail.com <pat22...@gmail.com> wrote: > This has to be a FAQ, but my google foo for searching it is not clear > The docs say: " The syntax of patterns is the same as in path.Match." > > The pattern seems to implement only fairly simple search expressions. > > I'd like to search for "./*.MP4", but of course to be platform independant > I have to search for both upper and lower case "mp4" and "MP4" > and maybe even allow "Mp4". > > This is trivial in most regex, including go's regex > > Can I do this with Glob or DirWalk? Or do I need to just > get the file names and manually apply the regex? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/2d6cfad4-6a32-458a-89d1-f5546c80df90n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/2d6cfad4-6a32-458a-89d1-f5546c80df90n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAFuMYUx%2B0t9i1ZtEmR6ncr_JTU20RHpqr9-tSOmFB828RoHGbw%40mail.gmail.com.