I want to match the ?si=
on the end of YouTube links using Regex so that I can filter submitted links to remove the ?si=
and what comes after.
I want to exclusively match that ID, and not anything that could potentially come after, such as ?t=300
to start 5 minutes into a video, a space/newline/closed parenthesis/less than symbol following a link, or anything else that could potentially come after said link.
Example:
[Check this out!](https://youtu.be/LY2xiOqi9gU?si=WzYuT7GK_IULnUPQ)
Check this video out:
<https://youtu.be/LY2xiOqi9gU?si=WzYuT7GK_IULnUPQ>
Check this out!
https://youtu.be/LY2xiOqi9gU?si=WzYuT7GK_IULnUPQ It's pretty cool.
Etc…
I’d really appreciate any help I can get on this.