I need a regex that matches a pattern for urls with the end like -p123456.html, so the end it will have a hyphen and the letter p followed by a sequence of numbers right before .html.
Here are some examples:
- https://www.myurl.com/br/test-url-p04548023.html (MATCH)
- https://www.myurl.com/sometext-p123.html (MATCH)
- https://www.myurl.com/text-h504.html (DOESN'T MATCH)
- https://www.myurl.com/text.html (DOESN'T MATCH)
Can anyone help me with that?