mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
405 B
405 B
Group Price
Instructions
Create a groupPrice
function, that can find a price in a given string.
The function has to return an array of arrays with the full match of the price ($43.99)
and the groups of that price, the first group(43) and the second group (99).
If there is no match the function returns an empty array.
Example:
"The price is USD12.31"
Expected output:
"USD12.31","12","31"