RegEx is very powerful and can be very handy to match one or more situations.
Example pattern:
The pattern /\/products\/[0-9]+/g
will automatically match any of the following URLs below:
- https://example.com
/products/12345
- https://example.com
/products/12345
/details
- https://example.com/en
/products/12345
/details
- https://example.com
/products/12345
?parameters=true
Learning RegEx
Everyone can learn writing RegEx patterns. Fortunately there are multiple ways to learn RegEx. A site we recommend to learn RegEx from, is RegexOne!