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
hex string split by blank
ECMAScript (JavaScript)
match like aa bb cc dd ee ff 00 aa 13 0 1 2 3 aa
Submitted by
Victor Lin
-
3 years ago
0
Escape sequence
ECMAScript (JavaScript)
Matches on escape sequences only. \b Backspace \f Form Feed \n New Line \r Carriage Return \t Horizontal Tabulator...
Submitted by
anonymous
-
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
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
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
0
/@.+k\s[[].+[\][msg:\s"].+"[\]]/gi
ECMAScript (JavaScript)
looking for lines like: *@block user
Submitted by
Developer bot
-
3 years ago
0
/@d.+e\s[[].+[\]]/gm
ECMAScript (JavaScript)
using this library, you can search for substrings of the type in a string: @delete [user_name]
Submitted by
Developer bot(my programs: https://replit.com/@developer)
-
3 years ago
2
Asciidoc PlantUML Block
Java 8
Regex to select PlantUML Block in Asciidoc documents
Submitted by
anonymous
-
3 years ago
-1
.NET tools
ECMAScript (JavaScript)
a
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Title Firstname Middlename Lastname, Suffix
ECMAScript (JavaScript)
This raged parses out the Title (optional) Firstname Middlename(s) (optional) Lastname (optional) and Suffix (optional)
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
LastName, FirstName MiddleName(s), Suffix
ECMAScript (JavaScript)
This Regex parses out the LastName, FirstName, MiddleName(s) (optional) and Suffix (optional). The String must have at least two words separated by a comma to match.
Submitted by
Ryan Toner
-
3 years ago
-1
bl_regex_fees_types_2
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
3 years ago
0
regex_bl_fees_types
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
3 years ago
1
Email Match
PCRE2 (PHP >=7.3)
matches on emails.. try it
Submitted by
Singh
-
3 years ago
0
Match semantic version (numbers only)
PCRE2 (PHP >=7.3)
Match a semantic version string, but numbers only (e.g. 1.2.3). Ignore things like dev, patch, src, etc.
Submitted by
Geddings
-
3 years ago
0
Wordle Result
Golang
A Regular Expression for the result of a Wordle, that can be shared after completing the Wordle of the Day.
Submitted by
Varun R Gupta
-
3 years ago
0
Matches a specific cli argument for node js
ECMAScript (JavaScript)
Ideally, to be used with JS Array join and String replace methods, like so: process.argv.join(' ').replace(/["']/g, '').match(/(?<=--path[ |=])dist\/.*(?=$)/); The join is to convert array to string to prevent iterating. The replace is to remove single or double quotes for easier matching....
Submitted by
Marc Kassay
-
3 years ago
0
toki pona tokenization
PCRE2 (PHP >=7.3)
a regex for matching words according to the rules of writing toki pona in latin characters
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Match strings starting and ending with the same letter
PCRE2 (PHP >=7.3)
This will match all strings starting and ending with the same letters that are specified in the capturing group (in the parentheses).
Submitted by
@elliottprogrammer
-
3 years ago
0
regularExpe-Racket
PCRE2 (PHP >=7.3)
Exercises for the class with racket
Submitted by
anonymous
-
3 years ago
1
...
155
156
157
158
159
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
\w
{3}
\d
{2}
\d
{2}
:
\d
{2}
:
\d
{2}
)
(
[
a
-
z
]
+
)
(
[
\w\d
\[\]
]
+
)
:
(
.
*
)
$
/
gm
Open regex in editor
Description
Capture the date, host, message type, and message from the patterns in the log file.
Submitted by
Nicholas Tower
-
3 years ago