PHP -Regex to validate images and link
<p>I'm validating form fields.I tried this regex for image '/^[.jpg|.png|.gif|.bmp]$/i but i think is regex is not correct.</p>

<p>How do i validated links,i only want to check whether the link has HTTP/HTTPS/WWW</p>

<p>Proper link should be . I do not wnat ot check domain,i see many domains ending in different forms line .rs etc.</p>

<p>Any help would be appreciated!</p>
