Skip to main content
Commonmark migration
Source Link

#MATL, 8 bytes

MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
         % representing numbers
XU       % convert each string to a double. Returns a numeric array
s        % sum of numeric array

#MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
         % representing numbers
XU       % convert each string to a double. Returns a numeric array
s        % sum of numeric array

MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
         % representing numbers
XU       % convert each string to a double. Returns a numeric array
s        % sum of numeric array
added 37 characters in body
Source Link
Luis Mendo
  • 104.9k
  • 9
  • 133
  • 370

#MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
         % representing numbers
XU       % convert each string to a double. Returns a numeric array
s        % sum of mumericnumeric array

#MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
XU       % convert each string to a double. Returns a numeric array
s        % sum of mumeric array

#MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
         % representing numbers
XU       % convert each string to a double. Returns a numeric array
s        % sum of numeric array
deleted 10 characters in body
Source Link
Luis Mendo
  • 104.9k
  • 9
  • 133
  • 370

#MATL, 8 10 bytes

1Y4XXXUs

Try it online!

1Y4        % predefined literal: '\d+'
XX         % implicit input. Match regular expression. Returns a cell array of strings
XU         % convert each string to a double. Returns a numeric array
s          % sum of mumeric array

#MATL, 8 10 bytes

1Y4XXXUs

Try it online!

1Y4        % predefined literal: '\d+'
XX         % implicit input. Match regular expression. Returns a cell array of strings
XU         % convert each string to a double. Returns a numeric array
s          % sum of mumeric array

#MATL, 8 bytes

1Y4XXXUs

Try it online!

1Y4      % predefined literal: '\d+'
XX       % implicit input. Match regular expression. Returns a cell array of strings
XU       % convert each string to a double. Returns a numeric array
s        % sum of mumeric array
Source Link
Luis Mendo
  • 104.9k
  • 9
  • 133
  • 370
Loading