Menu
Home
Regular Expression
Generate Code
Test Match
/
/
g
Modifier
Global Search -
g
Ignore Case -
i
Multi-line -
m
Reference
.
- All characters except newline
^
- Start of string
$
- End of string
\d
,
\w
,
\s
- Match numbers, characters, spaces
\D
,
\W
,
\S
- Match non-digits, non-characters, non-spaces
[abc]
- Match one letter of a, b, or c
[a-z]
- Match a letter from a to z
[^abc]
- Match other letters except a, b or c
aa|bb
- Match aa or bb
?
- Match at most once
*
- Match 0 or more times
+
- Match 1 or more times
{
n
}
- Match
n
times。
{
n
,}
- Match
n
times and above。
{
m
,
n
}
- Match
m
time at least,and
n
times at most。
(?:
expr
)
- Ignore captured subpatterns
(?=
expr
)
- Forward preview mode
expr
(?!
expr
)
- Negative preview mode
expr
Replacement text:
Replacement
×
Each language code reference
JavaScript
PHP
Go
JAVA
Ruby
Python