Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 19th, 2018
68
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
$text = "We have 13 cats";
$pattern = "/1[0123456789]/";
if(preg_match($pattern, $text)) {
echo "true";
} else {
echo "false";
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Review Skilling
PHP | 6 min ago | 2.29 KB
Review Skilling
PHP | 6 min ago | 2.55 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 23 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 34 min ago | 0.38 KB
Контроль выхода
C# | 38 min ago | 0.61 KB
Review Doto
PHP | 39 min ago | 2.66 KB
Review Doto
PHP | 39 min ago | 2.45 KB
ДЗ Наибольший элемент
C# | 44 min ago | 1.54 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!