i wnt a php regexp code for following Validate a youtube url eg:- http://www.youtube.com/watch?v=<<<<VIDEO_ID>>>> Validate a image url ending with jpeg jpg bmp png Validate a name fiels containing A-Z 0-9 <space> - and _ i found this url http://regexlib.com/UserPatterns.asp...6-ee9534263d28 containg regex code but can you give me the php code validate image ^(http\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?(?:[a-zA-Z0-9_])+\.(?:jpg|jpeg|gif|png))$ validate youtube (\"http:\/\/www\.youtube\.com\/v\/\w{11}\&rel\=1\")
Ok - here is a gift - bookmark this site : http://www.txt2re.com/index-php.php3?s=30:Oct:2008 "This is an Example!"&-1
a millon thanks although i was not fully satisfied the youtube thing worked fine but not the image one