I'm validating form fields.I tried this regex for image '/^[.jpg|.png|.gif|.bmp]$/i but i think is regex is not correct.
How do i validated links,i only want to check whether the link has HTTP/HTTPS/WWW
Proper link should be . I do not wnat ot check domain,i see many domains ending in different forms line .rs etc.
Any help would be appreciated!