V@no.
04-02-2003, 02:43 PM
Hi!
I have two pre_match codes, both works only for http and https
and because of lack of regular expressions knowlege I cant figure out how to add file:// and ftp:// to it.
here is my two code lines:preg_match("/^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+/i", $url)
and
preg_match("#^(https?:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+(:[0-9]+)*\/.*?\.(gif|jpg|jpeg|png)$)#is", $remote_thumb_file)
can someone help me with that?
thx.
I have two pre_match codes, both works only for http and https
and because of lack of regular expressions knowlege I cant figure out how to add file:// and ftp:// to it.
here is my two code lines:preg_match("/^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+/i", $url)
and
preg_match("#^(https?:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+(:[0-9]+)*\/.*?\.(gif|jpg|jpeg|png)$)#is", $remote_thumb_file)
can someone help me with that?
thx.