Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 23rd, 2017
73
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
<?php
$data = '+11234567890';
if( preg_match( '/^\+\d(\d{3})(\d{3})(\d{4})$/', $data, $matches ) )
{
$result = $matches[1] . '-' .$matches[2] . '-' . $matches[3];
return $result;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
primefact.lua
Lua | 16 sec ago | 0.87 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 35 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 43 min ago | 0.39 KB
MCVE for https://stackoverflow.com/q/78378063...
C++ | 1 hour ago | 0.67 KB
Untitled
Python | 1 hour ago | 1.36 KB
Spectate System
Lua | 1 hour ago | 6.26 KB
Swimbot Error
Python | 1 hour ago | 0.67 KB
Unbox command
Lua | 2 hours ago | 3.19 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!