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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 11,300 community submitted regex patterns...
0
/../ directory path cleaner
PCRE (PHP <7.3)
Replaces preceeding directory with / when ../ is used.
Submitted by
Mr.Deek
-
8 years ago
0
Validate Password strength
PCRE (PHP <7.3)
(?=.*[A-Z]) # must contain 1 uppercase letter (?=.*[0-9]) # must contain 1 digit (?!.\n) # must not contain a newline character (?!.*\s) # must not contain any whitespace characters (?=.*[!$#+@%&]) # nust contain one of these symbols .{8,} # match a...
Submitted by
anonymous
-
8 years ago
0
Command line with escape
PCRE (PHP <7.3)
splits into command arguments: spaces split quotes keep spaced texts together \" escapes the quote
Submitted by
Skycoder42
-
8 years ago
0
positive/negative float/integer
PCRE (PHP <7.3)
matches all positive or negative float or integers
Submitted by
Codeloper
-
8 years ago
0
Regx5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Nigerian Phone numbers
PCRE (PHP <7.3)
Regex for validating Nigerian phone numbers using all mobile prefixes in the country
Submitted by
Jubril Edu
-
8 years ago
0
single line acronym
Python
no description available
Submitted by
anonymous
-
8 years ago
0
letters and _- followed by _000999
PCRE (PHP <7.3)
no description available
Submitted by
Pizzirani Andrea - Italy
-
8 years ago
0
DateTime YYYYMMDDhhmmss (with leap year)
PCRE (PHP <7.3)
Validates DateTime of format YYYYMMDDhhmmss including Leap Year
Submitted by
Alex
-
8 years ago
0
url segments seperation
PCRE (PHP <7.3)
seperates url path and query
Submitted by
r.abdollahi
-
8 years ago
0
Capture subsubsub sections of constitution/bylays
PCRE (PHP <7.3)
Will only capture patterns matching 4 levels, found at the beginning of a line if /gm tag is used
Submitted by
bsmith
-
8 years ago
0
Find missing space around operators (=, +, -, *, /)
Python
no description available
Submitted by
rugk
-
8 years ago
0
IP address a.b.c.d form with range from 0 to 255 for each letters
Python
Are you pissed off with your regular expression homework? well then. here is the answer. ^([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))$
Submitted by
Abdulaziz
-
8 years ago
0
switch case statemen in C++
PCRE (PHP <7.3)
Match switch case statemen in C++
Submitted by
Денис Суховерхов
-
8 years ago
0
Facebook ID in Links or Widgets
PCRE (PHP <7.3)
Find the ID/name of facebook users/pages in widgets, or links.
Submitted by
anonymous
-
8 years ago
0
Float Representations
PCRE (PHP <7.3)
no description available
Submitted by
S-YOU
-
8 years ago
0
Credit Card Validator
PCRE (PHP <7.3)
For Visa, Mastercard, Discover, and AMEX
Submitted by
David Avellan
-
8 years ago
0
Remove Javascript Single Line Comment
PCRE (PHP <7.3)
Yancharuk's code/regex
Submitted by
Yancharuk
-
8 years ago
0
Yealink XML Phonebook entry
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Yealink XML Phone book entry
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
219
220
221
222
223
...
565
r3.7 remove whole line with link: 如欲參考原文報導,請點選...
0
Regular Expression
PCRE (PHP <7.3)
/
^
\*\*\*\*
如欲參考原文報導,請點選
[
\s
]
*
<span
class=
\\
"tr-pnac
\\
"
id=
\\
"
[
\w
]
+
\\
">n
[
A
-
Za
-
z0
-
9
\#\-\.
=
\:\^
]
{9}
<
\/
span>即可擷取瀏覽
\*\*\*\*
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago