This site relies on Javascript for proper operation, please enable Javascript
Myregextester.com is the premier online regular expressions tester that allows visitors to construct, test, and optimize regular expressions.
ROWS:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
URL SOURCE:
FILE SOURCE:
MATCH PATTERN:
REPLACE PATTERN:
MATCH PATTERN:
russia/moscow-region/(moscow|outside).*$
REPLACEMENT PATTERN:
OPERATION:
i
x
m
s
SHOW MATCH ARRAY:
EXPLAIN:
PHP
ASP
VB.NET
C#.NET
Java
JS
match
match all
replace
split
DELIM:
/
#
@
~
HIGHLIGHT MATCHES:
GEN SAMPLES:
Save example
TOOLS:
CHARSET: Optimize Character Set
NUMRANGE: Generate Number Range Pattern
PASSWORD: Generate Password Pattern
WORD LIST: Generate Word List Pattern
FROM:
TO:
CAPTCHA VERIFICATION:
CAPTCHA VERIFICATION:
CAPTCHA verification required to save examples.
What is CAPTCHA?
Enter the characters from the above CAPTCHA Image:
Having trouble reading the image?
Reload Image
PASSWORD RESTRICTIONS:
PASSWORD RESTRICTIONS:
Allow only these characters:
(any character)
[
]
At Least
Total Characters
No More Than
Total Characters
At Least
Lowercase Characters (a-z)
At Least
Uppercase Characters (A-Z)
At Least
Numeric Characters (0-9)
At Least
Special Characters in
[^a-zA-Z0-9]
[
]
Disallow sequential alphanumeric sequences of
2
3
4
5
6
7
8
9
10
or more (i.e. 123... abc... ABC...)
Disallow repeating characters of
2
3
4
5
6
7
8
9
10
or more (i.e. 11... aa... AA... %%...)
WORD LIST:
WORD LIST:
SOURCE TEXT:
RESULTS:
SOURCE TEXT:
/russia/moscow-region/moscow/mitino_m /russia/moscow-region/moscow/planernaya_m /russia/moscow-region/outside /russia/moscow-region/moscow/otradnoe_m /russia/moscow-region/outside/podol-sk /russia/moscow-region/foreign/mexico /russia/moscow-region/moscow /russia/moscow-region/abrakadabra/u-lalala /russia/moscow-region/outside/himki /russia/moscow-region/moscow/preobrajenskaya_pl_m
RESULTS:
Select All (to copy etc.)
Match Pattern