in reply to Regular Expressions-Finding info between semicolons

I'd first split the string on semicolons, then you can just grep the string that contains the letter:
#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; for my $tuple ( [ W => ';A-B;C-D;E-F;G-H;J-K;L-M;N-P;R-S;T-W;Y-Z;' ], [ L => ';A-B-C-D;E-F-G-H;J-K-L-M;N-P-R-S;T-W-Y-Z;' ], [ B => ';A-B;C-D;E-F;G-H;J-K;L-M;N-P;R-S;T-W;Y-Z;' ], [ A => ';A-B-C;D-E-F-G-H-J-K-L;M-N-P-R-S-T;W-Y-Z;' ], [ Z => ';A-B-C;D-E-F-G-H-J-K-L;M-N-P-R-S-T;W-Y-Z;' ], ) { my ($letter, $string) = @$tuple; say "$letter: ", grep index($_, $letter) != -1, split /;/, $string +; }
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,