Could somebody tell me if a Java equivalent exist for PHP preg_grep()
? Or supply me with a good way to accomplish the same?
I need to do string matching against element in input array and return array with input array's indexes as preg_grep()
does.