The String.split methods can be very convenient for easily splitting a provided String based on a provided regular expression String. The only trick is figuring out a regular expression token to use ...
I was involved in a recent discussion on the "best" way to remove a given parameter from a URL string. The conversation began with using string primitives to split and join the parameter, a method ...
What is regex: A sequence of characters defining a search pattern, used for matching, replacing, or validating text across programming languages and tools. Why it matters: Regex simplifies complex ...
The people who attended my presentations at RMOUG Training Days 2010 asked several good questions. One question that was asked in the Groovy presentation that I really wish I had included a slide on ...