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.

13 lines
405 B

5 years ago
## 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)
5 years ago
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"
5 years ago
Expected output:
[["USD12.31","12","31"]]