Re: regex match utility method

2014-04-08 Thread sebb
On 8 April 2014 12:14, manoj mokashi wrote: > hi, > > do we have something like the below already ? > if not, would like to contribute to commons, maybe StringUtils ? Just curious - what is the use case for this? What does the method return if there are no matches? > /** > * Matches a string t

regex match utility method

2014-04-08 Thread manoj mokashi
hi, do we have something like the below already ? if not, would like to contribute to commons, maybe StringUtils ? /** * Matches a string to a regex and returns the matches as String[][], * each row is a match, each column a group * @param source : string to be matched * @param regex : regex