https://embed.thatsite.com?id=
https://embed.thatsite.com/?id=
Im trying to get the trailing slash as optional before ?id=
I tried
https?:\/\/embed\.([^\/]*)\.com\/\?id=([0-9]+) //works with slash only
https:\/\/embed\.([^\/]*)\.com\?id=([0-9]+) //works without slash
So, trailing slash should be optional before ?id=
because embed.thatsite.com
changes with both url types.Is there any way to make it working.Thankyou