We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Regex
- Backreferences
- Forward References
- Discussions
Forward References
Forward References
Sort by
recency
|
92 Discussions
|
Please Login in order to post a comment
Java 15:
^(\2tic|(tac))+$ in this regex why its getting 2 times the reference of the 2nd group
$Regex_Pattern = '/^tac((tac)+\2|tac(tic))*$/';
With php be wary of the double escape \ for .
Java 7 tester.checker("^(\\2\\2tic|(tac)|\\2\\2)+(\\1tic|\\1)*$"); // Use \\ instead of using \ \