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,000 community submitted regex patterns...
1
TRIM: Remove spaces at the begin and at the end of the string | Elimina espacios al inicio y final de la cadena de texto
PCRE (PHP <7.3)
**Removes leading and trailing spaces from the text **Example (do not consider quotes): " Lorem ipsum dolor sit " returns "Lorem ipsum dolor sit"
Submitted by
anonymous
-
8 years ago
1
Fontawesome - Icon parser (hex + title)
PCRE (PHP <7.3)
Page with icons PHP example: Generate xml for android resources header('Content-Description: File Transfer'); header("Content-Type: text/xml");...
Submitted by
IgorSkv
-
8 years ago
1
Extract Sql Columns from the given query
ECMAScript (JavaScript)
Tries to find the column names from the given SQL query.
Submitted by
anonymous
-
8 years ago
1
Extract all telephones in text
Python
Find all telephones in text: 968123123 968 123 123 968.123.123 968 12 12 12
Submitted by
anonymous
-
8 years ago
1
Full URLs (by dpmontero.es)
Python
Get all URLs: www.lapagina.com pagina.com http://www.lapagina.com http://pagina.com https://www.lapagina.es
Submitted by
anonymous
-
8 years ago
1
UTC Time Matcher
PCRE (PHP <7.3)
This expression verify an UTC time like UTC+02:00 or UTC-12:30
Submitted by
anonymous
-
8 years ago
1
SSN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Siebel Id
Golang
no description available
Submitted by
anonymous
-
8 years ago
1
Find JSON strings in a string
ECMAScript (JavaScript)
From StackOverflow
Submitted by
anonymous
-
8 years ago
(Last modified a year ago)
1
STEAM GAME KEYS
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
HTML5 or custom element tag
ECMAScript (JavaScript)
Matches a HTML5/custom element valid tag format .
Submitted by
Shadrack Ndacayisenga
-
8 years ago
1
Decimal numbers
PCRE (PHP <7.3)
Matches decimal numbers as accepted by e.g. Octave.
Submitted by
anonymous
-
8 years ago
1
Piwik
Python
no description available
Submitted by
Lennart Peeters
-
8 years ago
1
BTPAPP
Python
Filter search for candidate
Submitted by
anonymous
-
8 years ago
1
lines with 2 consecutive chars
Python
no description available
Submitted by
anonymous
-
8 years ago
1
Dailymotion videos ids
PCRE (PHP <7.3)
find ids of video in dailymotion urls in text
Submitted by
anonymous
-
8 years ago
1
Strip Android Logs of Date/Time and process
PCRE (PHP <7.3)
Strip Android Logs of Date/Time and process. This helps if you want to diff 2 logs and remove the different date/time and process numbers
Submitted by
anonymous
-
8 years ago
1
Amazon Resource Name (ARN) pattern with a named group for each component
Python
A pattern to parse Amazon Web Services ARNs into their varying components: Partition Service Region AccountID...
Submitted by
Arnoud
-
8 years ago
1
Any word
Python
no description available
Submitted by
anonymous
-
8 years ago
1
Https
Python
no description available
Submitted by
anonymous
-
8 years ago
1
...
756
757
758
759
760
...
900
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
(
\w
+
\.
\w
+
)
(
\.
withArgs
\(
(
.
+
)
\)
)?
\.
returns
\(
(
.
+
)
\)
/
g
Open regex in editor
Description
Replaces
sinon.js
stubs configuration with similar behaviour achievied using the
ts-mockito
library
Submitted by
anonymous
-
8 years ago