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 2,440 community submitted regex patterns...
1
Monkaa Dataset
Python
Parses Monkaa dataset filenames and extracts all the relevant labels
Submitted by
IP
-
3 years ago
1
match INTEGER val in range [0 ,32767] for unsigned val and [-32768,-1] for signed val
Python
"(^-?)(3276[0-8]$|327[0-5]?[0-9]$|320-6?[0-9]$|3[0-1]?[0-9]?[0-9]?[0-9]$|[0-2]?[0-9]?[0-9]?[0-9]?[0-9]$)"gm
Submitted by
issam-seghir
-
3 years ago
(Last modified 3 years ago)
1
IPv4 + TCP-Port
Java 8
This regex matches a IPv4 with a TCP Port (1-65535) Example: 192.168.0.69:1337 will match and have the groups: Group 1: 192.168.0.69 Group 2: 1337
Submitted by
SIMULATAN
-
3 years ago
1
Parse Data Fields
Python
Parsing example
Submitted by
anonymous
-
3 years ago
1
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
3 years ago
1
ds100reg2
Python
Data 100 Regular Expressions, adapted from Princeton
Submitted by
anonymous
-
3 years ago
1
Get domain name from URL
Python
Get domain name from URL
Submitted by
anonymous
-
3 years ago
1
Extract time from text
Python
Extract time from text
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
1
Android Package Validation - Java Regex
Java 8
Note: replace the "\." with "\\." if you paste this on your java. The regex will match if the package name is valid. example: my.new.hello.world.app Supports: a-z 0-9 and underscore Supports multiple dots
Submitted by
dlv_dls2
-
3 years ago
1
Paystub Basic Salary
Python
Extract Amount and Date from Paystub
Submitted by
MAJED MUSA GHANIM
-
3 years ago
1
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
3 years ago
1
streets with one or more names with unicode characters in python
Python
streets with one or more names with unicode characters in python
Submitted by
Stanicio
-
3 years ago
1
Matching build file names
Java 8
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
3 years ago
1
CRON
Python
Validades cron job time specification
Submitted by
anonymous
-
3 years ago
1
Lua Enhanced: function application compound operator
Python
This is a compound operator that takes a variable and a Example: local x = 9 x f(math.max)= 10 compiles to...
Submitted by
anonymous
-
3 years ago
1
SHA256 HASH
Python
Reference http://wiki.hash.kr/index.php/SHA256
Submitted by
RuvyTale
-
3 years ago
1
Facebook IDs
Java 8
A general regular expression that uses the keywords 'Facebook' and 'id' to collect strings that contain Facebook IDs. Also, added an additional condition to where if there's a long numeric string it will be match a group given that, 'Facebook' is within the string. This is a special use-case and can...
Submitted by
loganmcampbell
-
3 years ago
1
9 Digit SSN String
Java 8
If for whatever reason there isn't a delimiter within your data to for storing your SSNs you should be able to use this regular expression to capture 9 digit strings within data. You might need to add special keywords to filter out false positives.
Submitted by
loganmcampbell
-
3 years ago
1
Specific Year Dates (Regular Expression)
Java 8
Here's a regular expression to handle a specific year in the different forms of dates: YYYY-MM-DD DD-MM-YYYY MM-DD-YYYY ...
Submitted by
loganmcampbell
-
3 years ago
1
Simple HTML to Markup
Python
converts HTML: This is hyperlink. You can click this. to Markup: This is hyperlink. You can click this. which renders like this: This is hyperlink. You can click this.
Submitted by
toryano0820
-
3 years ago
1
...
109
110
111
112
113
...
122
Community Library Entry
0
Regular Expression
Python
r"
(?P<nom>
^
[
\w\d
]
?
)
\/
(?P<latfield>
(?P<latflag>
[
NS
]
)
(?P<latval>
\d
{1,2}
d
[
0
-
5
]
\d
?
(
\.
\d
*
)?
)
)
\/
(?P<lonfield>
(?P<lonflag>
[
EW
]
)
(?P<lonval>
[
01
]
?
\d
{1,2}
d
[
0
-
5
]
\d
?
(
\.
\d
*
)?
)
$
)
"
s
Open regex in editor
Description
Text fields describing a name and positions
Submitted by
bruno.piguet@meteo.fr
-
11 years ago