Sounds useful! I would have used it a few times already. On Sun, Dec 31, 2017 at 3:35 PM, mg <mg...@arscreat.com> wrote:
> All for adding that: Very helpful, does not break any existing code, > should be faster than any regex based solution (and be honest: Who wouldn't > wrap the regex solution in a helper method if used more than 2x in the > code, using a substring based solution along the way... ?-) ). > > -------- Ursprüngliche Nachricht -------- > Von: "Daniel.Sun" <sun...@apache.org> > Datum: 31.12.17 13:59 (GMT+01:00) > An: d...@groovy.incubator.apache.org > Betreff: Re: About adding DGM startsWith(String...) and > endsWith(String...) > > Yeah, you are right, but `it.file.name =~ /^(?:asm|antlr|antlr4)-/` is not > very intuitive IMHO. > > Cheers, > Daniel.Sun > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html > -- Guillaume Laforge Apache Groovy committer & PMC Vice-President Developer Advocate @ Google Cloud Platform Blog: http://glaforge.appspot.com/ Social: @glaforge <http://twitter.com/glaforge> / Google+ <https://plus.google.com/u/0/114130972232398734985/posts>