Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
[^`\w@\\](t[xyq]|th(nx|nq|x)|than[xk](s)?(you|[syxzq]){0,1})\b
/
gi
Test String
New
#- Should match tx, ty, tq, thnq, thx, thnx, thanx, thanxyou, thanxs, thanxy, thanxx, thanxz, thanxq, thanxss, thanxsy, thanxsx, thanxsz, thanxsq thank, thankyou, thanks, thanky, thankx, thankz, thankq, thankss, thanksy, thanksx, thanksz, thanksq ... #- Shouldn't work thanksk thans than thanker thanking thxq thnxs txs taxs `thanks` ``` a real world testing of thanks regex ``` _thanks_ tank of pleasure tax is high taks away! tanks are everywhere @thanks buddy # Shouldn't match @thanks @tanks @tx @ty thankqx
Substitution
Processing...
$1