Backreferences To Failed Groups

Sort by

recency

|

178 Discussions

|

  • + 0 comments

    For javascript - var Regex_Pattern = /\d{8}|^(\d{2}-){3}\d{2}$/;

  • + 0 comments

    However, some flavors, like JavaScript, treat backreferences to non-participating groups as matching an empty string, allowing the overall match to succeed. Betbhai9 login

  • + 1 comment

    Regex_Pattern = r"\d{8}|^(\d\d)(-\d\d){2}-(\d\d)$"

  • + 0 comments

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

  • + 1 comment

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

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