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
|
93 Discussions
|
Please Login in order to post a comment
This problem can also be solved by stack
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 .