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

On Sun, Dec 31, 2017 at 3:35 PM, mg <> 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" <>
Datum: 31.12.17 13:59 (GMT+01:00)
Betreff: Re: About adding DGM startsWith(String...) and endsWith(String...)

Yeah, you are right, but ` =~ /^(?:asm|antlr|antlr4)-/` is not
very intuitive IMHO.


Sent from:

Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform