Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 23rd, 2017
64
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
$pattern = '~.+.[a-zA-Z]{0,3}$~';
$string = current_url();
preg_match($pattern, $string, $matches);
if (empty($matches)) {
// We can save the url
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
micro-install
Bash | 15 min ago | 0.61 KB
Pets
C | 32 min ago | 2.02 KB
set-editor
Bash | 32 min ago | 0.27 KB
snowybot
JavaScript | 43 min ago | 1.74 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 45 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 49 min ago | 0.39 KB
Untitled
C++ | 50 min ago | 2.78 KB
Untitled
C++ | 51 min ago | 2.23 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!