Skip to main content
4 of 5
-1
Adám
  • 31.1k
  • 3
  • 124
  • 287

#Dyalog APL, 19 17 16 bytes ≢+#⍎'\d'⎕R'&+',⊢

Takes string and returns

length
+ plus
# in root namespace
evaluation of
'\d'⎕R'&+' regex append digits with a plus
, followed by
the unmodified string

–3 thanks to ngn

Adám
  • 31.1k
  • 3
  • 124
  • 287