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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,040 community submitted regex patterns...
0
CAN2-OK-1
Python
no description available
Submitted by
anonymous
-
5 years ago
0
CAN1-v2-OK-1
Python
no description available
Submitted by
anonymous
-
5 years ago
0
tilak punctuation regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
oid test
PCRE (PHP <7.3)
test if a string represents a valid oid
Submitted by
anonymous
-
5 years ago
0
WaitForKey
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Integers
PCRE (PHP <7.3)
Integers with no leading zeros ie. 0234 or -0486 is invalid
Submitted by
anonymous
-
5 years ago
0
Floats
PCRE (PHP <7.3)
Floats including integers that end with "f"
Submitted by
anonymous
-
5 years ago
0
Floats
PCRE (PHP <7.3)
Floats including integers that end with "f" Version 2: value will exclude "f"
Submitted by
anonymous
-
5 years ago
0
Extract substring from a string
PCRE (PHP <7.3)
For use with sed you need to escape the parentheses \(
Submitted by
anonymous
-
5 years ago
0
Fecha en formato yyyy-mm-dd ----- yyyy-m-d ----- yyyy/mm/dd ----- yyyy/m/dd
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Hastag #tag
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Extract URI from LinkedIn CV string
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Get value between q="...... "
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
5 years ago
0
Hugo Version Number
Python
Get the version number (like 0.69.2) from the "hugo version" output. Hugo is a static site generator (see https://gohugo.io).
Submitted by
anonymous
-
5 years ago
0
20200510
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Ährenlese
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Cognito Validation Email Message
PCRE (PHP <7.3)
Cognito Validation Email Message.
Submitted by
anonymous
-
5 years ago
0
Return error description from custom application log
Python
Returning the error description after 'R' and before '('
Submitted by
anonymous
-
5 years ago
0
Clockify time entry
ECMAScript (JavaScript)
Clockify time extry grouping in hours, minutes, and seconds.
Submitted by
anonymous
-
5 years ago
0
Map regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
...
296
297
298
299
300
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\b
(?'first_word'
[
A
-
Z
]
(?!
(
[
A
-
Z0
-
9
]
*
\b
|
[
[:alnum:]
]
*
_
)
(?#
the
word
isn't
in
all
caps
and
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 PascalCase
PascalCase
Pascal
PascalCaseCase
Pascal684Case (pascal684_case)
Pas45calCase (pas45cal_case)
PascalCaseCaseCase (with as many words as you like)
PPascal (p_pascal)
PascalCCase (pascal_c_case)
What isn't matched
camelCase
words with '_' underscores in them (SCREAMING_SNAKE_CASE, Pascal_Snake_Case)
words without lowercase letters (ALLCAPS, ALL54CAPS)
Limitations
all 'Capitalized' words are matched and substituted to 'capitalized'
PascalCase with non-alphanumeric characters isn't matched
Submitted by
inesvar
-
10 months ago