RegEx is very powerful and can be very handy to match one or more situations.
/\/products\/[0-9]+/g will automatically match any of the following URLs below:
Everyone can learn writing RegEx patterns. Fortunately there are multiple ways to learn RegEx. A site we recommend to learn RegEx from, is RegexOne!