Course of Raku / Regexes and grammars / Regexes / Adverbs / Exercises

All the numbers

Problem

The string 'x=5, y=10, z=15' contains three numbers. Using global matching, collect them all and print them joined by plus signs.

Example

The program prints:

5+10+15

Solution

See the solution

Course navigation

Solution: Count the matches   |   Solution: All the numbers