Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^[\p{L}\p{M}]+([\p{L}\p{Pd}\p{Zs}'.]*[\p{L}\p{M}])+$|^[\p{L}\p{M}]+$
/
gm
Unit Tests
स्वागत
स्वागत
→ regex does match
Hello
→ regex does match
hello
स्वागत
→ regex does match
Hello
hello
→ regex does match
स्वागत
Hello
→ regex does match
Mr.
स्वागत
स्वागत
→ regex does match
Mr.
Hello's
Singh
→ regex does match
Hello
1
→ regex does not match
1
Hello
→ regex does not match
.Hello
→ regex does not match
Hello
#
→ regex does not match
hello
👍
→ regex does not match