I am writing a program in Java and I need a method or class that is able to work like the PHP function preg_match_all. I need it to take Java regex (or even PHP regex), find and return all matches as the PHP function would.
Where can I find this, or can you paste it as a response?