Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
RegEx for allowing alphanumeric at the starting and hyphen thereafter
a guest
Feb 26th, 2012
53
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
a
^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$
^[[:alnum:]](?:[[:alnum:]-](?!-$))*$
^(?:[[:alnum:]]+(?:-(?!$))?)+$
^(?:[a-zA-Z0-9]+(?:-(?!$))?)+$
^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 8 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 17 min ago | 0.38 KB
estructura cuestonario entrevista
JSON | 51 min ago | 0.73 KB
win_env_var_explorer2
Python | 1 hour ago | 4.80 KB
Untitled
C++ | 1 hour ago | 0.61 KB
СПРИНТ № 7 | Модель памяти в C++ | Урок 8: Ко...
C++ | 1 hour ago | 4.06 KB
win_env_var_explorer
Python | 1 hour ago | 4.06 KB
js max product of 2 numbers in array
C# | 1 hour ago | 1.30 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!