Backreferences To Failed Groups

  • + 1 comment

    ^(\d\d)(\-?)\1\2\1\2\1$

    why this wont work in JAVA? Group1 = (\d\d) Group2 = (\-?)