Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 11,840 community submitted regex patterns...
1
Camel case string splitter
PCRE (PHP <7.3)
Splits CamelCase single string into separate strings. Can be used for transforming CamelCase to snake_case. Also works with numbers and capital letter shortcuts (e.g SomeWTFVariable1).
Submitted by
Nicolas
-
9 years ago
1
Xml/html regex
PCRE (PHP <7.3)
Common regex for use with xml/html files
Submitted by
wonzbak
-
9 years ago
1
FFXIV Lodestone Character profile
PCRE (PHP <7.3)
Parses full url up to character page. Ignores http:// and anything after character ID
Submitted by
JaveLiner
-
9 years ago
1
Strip Specific HTML Tags
PCRE (PHP <7.3)
Strip specific HTML tags from a string—opposite of PHP's strip_tags(). Replace letter 'p' with your tag name. Using PHP preg_replace(), example: preg_replace('/(]>)(.?)()|(]*>)/i', '$2', $string);
Submitted by
Zachary Beschler
-
8 years ago
1
Country Code
PCRE (PHP <7.3)
no description available
Submitted by
SB
-
8 years ago
1
Regex to match any JSON value with fewer steps possible
PCRE (PHP <7.3)
If you find... any JSON value that should be matched but isn't, any JSON value that should NOT be matched but is or simply a way to match the values with fewer steps... please, let me know.
Submitted by
anonymous
-
5 years ago
1
Detects hiragana, katakana, kanji and japanese alphabet
Recommended
PCRE (PHP <7.3)
Detects hiragana, katakana, kanji and japanese alphabet
Submitted by
anonymous
-
3 years ago
0
Markdown Inline Link to HTML Anchor
PCRE (PHP <7.3)
Extracts title and link from Markdown inline link to be placed into an HTML anchor tag.
Submitted by
Mike Johnson
-
10 years ago
0
Password strength check
PCRE (PHP <7.3)
Checks password for following attributes: At least 2 uppercase letters At least 2 lowercase letters At least 2 numbers At least 2 non-alphanumeric characters ...
Submitted by
Visigral
-
10 years ago
-2
posix
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-1
Substitutin
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Match US Currency Amount
PCRE (PHP <7.3)
Group 1 has dollar amount with or without commas, Group 4 has optional cents.
Submitted by
anonymous
-
10 years ago
1
erferf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
match hyphen between quotes
PCRE (PHP <7.3)
no description available
Submitted by
cetanu
-
10 years ago
1
Find common version names in filenames
PCRE (PHP <7.3)
no description available
Submitted by
Jared
-
10 years ago
1
Replaces odd number of quotes with even number of quotes.
PCRE (PHP <7.3)
no description available
Submitted by
ingredient_15939
-
10 years ago
1
Divisible by 3 numbers
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
10 years ago
1
parse SQL statements and get values
PCRE (PHP <7.3)
but it does not work. How do I make it work? It will be used in C#
Submitted by
anonymous
-
10 years ago
1
css all comments
PCRE (PHP <7.3)
no description available
Submitted by
Mitus M.
-
10 years ago
1
...
30
31
32
33
34
...
592
Divisible by 3 numbers
1
Regular Expression
PCRE (PHP <7.3)
/
^
(?:
[
0369
]
|
(?:
[
147
]
(?:
[
147
]
[
0369
]
*
[
258
]
|
[
0369
]
)*
[
258
]
)
|
(?:
[
258
]
(?:
[
258
]
[
0369
]
*
[
147
]
|
[
0369
]
)*
[
147
]
)
)+
$
/
xgm
Open regex in editor
Description
no description available
Submitted by
Oleksandr Sochka
-
10 years ago