i have a script that search match but i think that this way not is the best because is so long, i know that maybe it can be more short but i don't know much things about regexp.
I need get all string that start with http but also i need get if inside string contain youtube.com or youtu.be and i created this regexp:
^(?=.*\bhttp)(?=.*\byoutube\.com\b).*$|^(?=.*\http)(?=.*\byoutu\.be\b).*$
but i guess that maybe something like it work:
^(?=.*\bhttp)(?=.*\byoutube\.com\b|\byoutu\.be\b).*$