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...
0
CPF/CNPJ - Com/Sem máscara
ECMAScript (JavaScript)
Valida se é um CPF ou um CNPJ válido, independente da máscara
Submitted by
Victor A. de O. Neto
-
9 years ago
0
Xml Start Cleaner
ECMAScript (JavaScript)
Selects Xml version and Encoding and whitespaces
Submitted by
Edward Coughlan
-
9 years ago
0
Facebook profile URL pattern
PCRE (PHP <7.3)
Pattern that check your string to match Facebook user profile URL.
Submitted by
JSC Quatrodev
-
9 years ago
0
Validar registro de pregunta
PCRE (PHP <7.3)
Valida las posibles respuestas al insertar una pregunta, esto se realiza ya que las respuestas se ordenan aleatoriamente, por eso no se permite respuestas del tipo "A y B son correctas"
Submitted by
ZeusAFK
-
9 years ago
0
phone number russia
Python
phone number without spaces or hyphens +7YYYXXXXXXX
Submitted by
vscoder
-
9 years ago
0
International phone number validation
PCRE (PHP <7.3)
Validates all formats of phone numbers for international calls. Accepts all kinds of internationa call prefixes.
Submitted by
Ādams Muzikants
-
9 years ago
0
URL Query String Parser
ECMAScript (JavaScript)
Parses a URL query string (ignores anything after #) and returns parameters and values separately.
Submitted by
Ross Tracy
-
9 years ago
0
Website URL
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
Facebook Page/Profile. No profile.php. No /groups/
PCRE (PHP <7.3)
Example: http://www.facebook.com/profile.php?id=123456789 http://www.facebook.com/someusername https://www.facebook.com/0x20.be http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2F2leep%2F109473355777935&width=300&connections=4&stream=false&heade...
Submitted by
aramosf
-
9 years ago
0
Phone search in HTML
PCRE (PHP <7.3)
Searching for phone in HTML where content in 1-st tag descibes phone type in some next tag
Submitted by
Akella
-
9 years ago
0
GUID
PCRE (PHP <7.3)
GUID Regex
Submitted by
Dhruval Darji
-
9 years ago
0
PowerShell + Regex to match and output to csv
PCRE (PHP <7.3)
no description available
Submitted by
Jan
-
9 years ago
0
int or Float 3 decimal values
ECMAScript (JavaScript)
Accepts only integer or Flating values upto 3 decimals. To accept n decimals change (1,n)
Submitted by
Shanky
-
9 years ago
0
Turkey mobile phone number 0(5__) ___-____
PCRE (PHP <7.3)
Turkey mobile phone number Regex format 0(5__) -_
Submitted by
msbeden
-
9 years ago
0
Unicode alphanumeric (any language) with whitespaces
ECMAScript (JavaScript)
Match any alphanumeric string in any language. White spaces are allowed. (Usefull for ECMAScript 5)
Submitted by
Angelos Gkountis
-
9 years ago
0
Reg Exp to Remove all special Characters
PCRE (PHP <7.3)
This regular expression removes all special characters including whitespaces which are allowed in windows path name, file name and folder name.
Submitted by
Anirudh
-
9 years ago
0
File path seperator
PCRE (PHP <7.3)
Seperate any file from it's path and trim extention, creating two groups
Submitted by
Edward Aryee
-
8 years ago
0
Integers
ECMAScript (JavaScript)
Positive or negative. 0 is allowed but may not be a leading digit.
Submitted by
anonymous
-
8 years ago
0
Substring Matching Word, Hyphen, Underscores and Digits
PCRE (PHP <7.3)
Matches customer portion of call detail records found in the fields dcontext, lastdata, and usefield of an Asterisk CDR table. Additional processing required to get fully clean values.
Submitted by
lindstrom
-
8 years ago
-3
RegEX for account code starting with 000-
PCRE (PHP <7.3)
no description available
Submitted by
Joe H
-
9 years ago
1
...
573
574
575
576
577
...
900
Community Library Entry
0
Regular Expression
Python
r"
(
```
|
`
)
(
python
)?
\s
*
?
\n
?
(
from
\S
+
)?
import
\S
+
(
\n.
*
?
;
)*
\n
(
(
.
*
return
\S
+
```
)
|
(
`return
\S
+
`
)
)
"
gm
Open regex in editor
Description
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
-
a year ago