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
/
(?:(?=ab|bc|cd|de|ef|fg|gh|hi|ij|jk|kl|lm|mn|no|op|pq|qr|rs|st|tu|uv|vw|wx|xy|yz).){2,}.
/
gm
Input 1
1
New
abc - match abc def - match def lmnop - match lmnop xxxxghixxxx - match ghi ab - no match (not long enough) zyx - no match (not in order) q r s - no match (interceding chararacters) tuwx - no match (missing v) abcxxxdefghxxxabxyz ababab abcghixyz
Extraction
abc - match abc def - match def lmnop - match lmnop xxxxghixxxx - match ghi ab - no match (not long enough) zyx - no match (not in order) q r s - no match (interceding chararacters) tuwx - no match (missing v) abcxxxdefghxxxabxyz ababab abcghixyz