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 14,940 community submitted regex patterns...
0
identify pseudocode do while until loop
PCRE (PHP <7.3)
identify pseudocode do while until loop
Submitted by
anonymous
-
4 years ago
0
Singapore UEN
PCRE (PHP <7.3)
Should match all valid UENs but doesn't check Entity Type is valid. Based on: https://www.uen.gov.sg/ueninternet/faces/pages/admin/aboutUEN.jspx
Submitted by
Harry Gordon
-
4 years ago
(Last modified 4 years ago)
0
valid time check
Python
written as a part of the Coursera interacting with the OS course offered via Google
Submitted by
anonymous
-
4 years ago
0
Breakdown datetime stamp into parts (YYYY-MM-DD[T]HH:MM:SS)
ECMAScript (JavaScript)
This will break the datetime string into it's individual parts and add them into named groups.
Submitted by
Tony Hume
-
4 years ago
0
senegal phone number regex
ECMAScript (JavaScript)
Check if the phone number is correct from sénégal
Submitted by
Me
-
4 years ago
0
Verify Cambodian mobile phone number(柬埔寨手机号码正则)
PCRE (PHP <7.3)
国家:Cambodia 中文名称:柬埔寨 区域码:+855 手机号位数:8或9 号段:10-18 其他号段:31、38、60、61、66-71、76-78、80、81、83-89、90-93、95-99...
Submitted by
7kk
-
4 years ago
0
Verify Indian mobile number(印度手机号码正则)
PCRE (PHP <7.3)
国家:India 中文名称:印度 区域码:+91 手机号位数:10 号段:7503、7504、8000、900 ...
Submitted by
7kk
-
4 years ago
0
telephone validator from FCC
ECMAScript (JavaScript)
passes freecodecamp's telephone validator
Submitted by
anonymous
-
4 years ago
0
Practice email validation
ECMAScript (JavaScript)
Solves the practice problem from https://www.sitepoint.com/learn-regex/
Submitted by
Nhi Mai-Do
-
4 years ago
0
Character Match Replace + Capturing Group
PCRE (PHP <7.3)
s matches the character s literally (case sensitive) 1st Capturing Group (\d) \d matches a digit (equivalent to [0-9]) Global pattern flags...
Submitted by
Dan
-
4 years ago
0
Remove Text after Parenthesis
PCRE (PHP <7.3)
/ \).$ / gm \) matches the character ) literally (case sensitive) ...
Submitted by
Dan
-
4 years ago
0
parse log file for message type, message, ticket number and user
Python
for the Google interacting with the OS course final project on Coursera
Submitted by
anonymous
-
4 years ago
0
Niledutch voyage regex
Python
s
Submitted by
anonymous
-
4 years ago
0
Lookbehind
ECMAScript (JavaScript)
Example of how to pull a particular piece of the URL
Submitted by
DATA_GATA
-
4 years ago
0
email address
ECMAScript (JavaScript)
email address regex
Submitted by
anonymous
-
4 years ago
0
Trailing dot removal after number sequence
ECMAScript (JavaScript)
The capture group returns only a number with a dot if it has decimal digits, otherwise it is treated as an integer. 1.1 => 1.1 1\. => 1
Submitted by
Stefa168
-
4 years ago
0
Match URL or URI strings
ECMAScript (JavaScript)
Reference: https://stackoverflow.com/a/34669019/369727
Submitted by
https://danlevy.net/
-
4 years ago
0
medicine
PCRE (PHP <7.3)
about medicine
Submitted by
fcs
-
4 years ago
(Last modified 4 years ago)
0
匹配整数(带小数位)
PCRE (PHP <7.3)
匹配小数位的整数,或者匹配整数
Submitted by
solelyli
-
4 years ago
0
Generate random alpha characters
PCRE (PHP <7.3)
Given a string, generate random alpha characters of a particular length
Submitted by
Chetan
-
4 years ago
1
...
682
683
684
685
686
...
747
Community Library Entry
0
Regular Expression
Golang
`
^
(
#
Time:
(
\d
+
)
\s
(
[^
\n
]
+
)
\n
)?
#
User@Host:
(
\w
+
\[
\w
+
\]
)
\s
@
\s
\[
(
[
\d
|
\.
]
+
)
\]
\s
Id:
(
\d
+
)
\n
#
Query_time:
(
\d
+
\.
\d
+
)
Lock_time:
(
\d
+
\.
\d
+
)
Rows_sent:
(
\d
+
)
Rows_examined:
(
\d
+
)
\n
(
(
.
|
\n
)*
)
$
`
g
Open regex in editor
Description
parse log data
Submitted by
anonymous
-
4 years ago