PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
1 sec ago
Untitled
C | 5 sec ago
Untitled
6 sec ago
Untitled
13 sec ago
Untitled
10 sec ago
Untitled
11 sec ago
Untitled
12 sec ago
Untitled
13 sec ago
Untitled
By: a guest on
Apr 24th, 2012
| syntax:
None
| size: 0.24 KB | hits: 11 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
How to validate a hyperlink from different links using php
1 http://**www.website1.com**/1/2/
2 http://**news.website2.com**/s/d
3 http://**website3.com/news**/gds
preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url)
create a
new version
of this paste
RAW Paste Data
How to validate a hyperlink from different links using php 1 http://**www.website1.com**/1/2/ 2 http://**news.website2.com**/s/d 3 http://**website3.com/news**/gds preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url)