Sounds useful!
I would have used it a few times already.

On Sun, Dec 31, 2017 at 3:35 PM, mg <mgbiz@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" <sunlan@apache.org>
Datum: 31.12.17 13:59 (GMT+01:00)
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