This question has already been answered:
- Help unite php 1 regular answer
Here is the regular:
#\[video\]http(s*)://(.+?)\[/video\]#si
The user is given a frame, where src = (the address between the video tags).
Everything works, but instead of a video, you can put any page. How to check the availability of youtube.com
?