in reply to count backrefenence regex
I tried to translate your first oneliner (that's the "working" one?) to a readable, formated script with strict and warnings but found too many bugs.
Lets say you have a string "AAA_x_AAA_x_BBB_x_AAA_x_AAA_x_BBB" what is the result you expect for AAA (and BBB )?
Please provide a fixed input and tell us the expected output. See also SSCCE
and what about AAA_x_BBB which is also repeated...? should sub-results be counted too or ignored?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: count backrefenence regex
by tmolosh (Initiate) on Oct 11, 2021 at 02:33 UTC | |
by AnomalousMonk (Archbishop) on Oct 11, 2021 at 03:11 UTC | |
by LanX (Saint) on Oct 11, 2021 at 10:03 UTC |