2. java.util.HashMap<Integer, Integer>,
4. java.util.HashMap<Integer, ArrayList<String>>,
5. java.util.HashMap<Integer, ArrayList<ArrayList<String>>>,
I need a regex for matching method parameters in Java.
I have tried with this one..
([a-zA-Z\. ]+,)|([a-zA-Z\. ]+<[a-zA-Z\., ]+(<[a-zA-Z\., ]+>)*>[ ]*,)
It is matching first 4 strings.
But it is not matching 5th one, since it is having nested <> combinations. (i.e. like <<<>>>)
How to make it to match 5th one also...
It should match all nested combinations of < & > to any depth...