Hello,
I have following regex (abc|def)( ?(\\d+|(?:(?!\\1)[a-z])+)?)* with matches perfectly the subject abc123 456.
Now I want to get all parts abc, 123 and 456.
I use following code:
    Pattern p = Pattern.compile(pattern);
    Matcher m = p.matcher(subject);
    while(m.find())
    {
        System.out.println(m.group());
    }
But so I get only abc123 456.
Any ideas are welcome.