IBAN: Difference between revisions
Content deleted Content added
→{{header|Raku}}: use alnum regex |
|||
Line 4,306: | Line 4,306: | ||
<syntaxhighlight lang="raku" line>subset IBAN of Str where sub ($_ is copy) { |
<syntaxhighlight lang="raku" line>subset IBAN of Str where sub ($_ is copy) { |
||
s:g/\s//; |
s:g/\s//; |
||
return False if m/<- |
return False if m/<-alnum>/ or .chars != < |
||
AD 24 AE 23 AL 28 AT 20 AZ 28 BA 20 BE 16 BG 22 BH 22 BR 29 CH 21 |
AD 24 AE 23 AL 28 AT 20 AZ 28 BA 20 BE 16 BG 22 BH 22 BR 29 CH 21 |
||
CR 21 CY 28 CZ 24 DE 22 DK 18 DO 28 EE 20 ES 24 FI 18 FO 18 FR 27 |
CR 21 CY 28 CZ 24 DE 22 DK 18 DO 28 EE 20 ES 24 FI 18 FO 18 FR 27 |