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 15,480 community submitted regex patterns...
0
Test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Divide URL
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
redirections catégorie ordinateur-portable
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
A complete recognition of HTML elements pattern.
ECMAScript (JavaScript)
no description available
Submitted by
Rafael Laurindo
-
8 years ago
0
A complete recognition of pattern for css selectors
ECMAScript (JavaScript)
no description available
Submitted by
Rafael Laurindo
-
8 years ago
0
Match part of css
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
解析華為KB
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Match Indian 10 digit mobile without extension
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Find sql name for rotator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
JS function to arrow notation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
P1 register parsing
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Callstack parent caller
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
TP Parse
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
buscar objetos en custom-controllers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
UK postcode validation
PCRE (PHP <7.3)
May be used for validation of UK postcodes. From here: http://stackoverflow.com/questions/15960184/united-kingdom-gb-postal-code-validation-without-regex
Submitted by
anonymous
-
8 years ago
0
CPU Component Gen Model
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
CPU performance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
CPU Core
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
CPU clock speed
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
CPU Cache Memory
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
2
3
4
5
6
...
774
camelCase -> snake_case
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\b
(?'first_word'
[
a
-
z
]
(?!
(
[
[:alnum:]
]
*
_
)
(?#
the
word
doesn't
contain
underscores)
)
(?:
[
a
-
z0
-
9
]
*
)
)
)
|
(
\G
(?'trailing_word'
[
A
-
Z
]
[
a
-
z0
-
9
]
*
)
)
/
gm
Open regex in editor
Description
Works with many forms of alphanumeric camelCase
camelCase
camel
camelCaseCaseCase... (with as many words as you want)
ca65melCase (ca65mel_case)
camelCCase (camel_c_case)
What isn't matched
PascalCase
words with '_' underscores in them (camel_Snake_Case)
Remarks
all 'lowercase' words are matched... but they're not changed by the regex !
Submitted by
inesvar
-
4 months ago