Categories
Linux Mastering Development

Advanced regex: Can’t figure a case where (?R) recursive regex can be used

Is anyone here can explain a case where the recursive Perl/PCRE regex (?R) can be helpful ? I read https://regular-expressions.mobi/recursebacktrack.html?wlr=1 https://perldoc.perl.org/perlre.html#(%3fPARNO)-(%3f-PARNO)-(%3f%2bPARNO)-(%3fR)-(%3f0) but still can’t find a use-case.