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 5,960 community submitted regex patterns...
0
IP address with port
PCRE2 (PHP >=7.3)
Match ip address with port
Submitted by
PARNKOT
-
2 years ago
0
Password Validator
PCRE2 (PHP >=7.3)
Password validator: 6-50 symbols Minimum 1 each: Upper case letter, Lower case letter, number, special symbol (!, @, #, $, %, ^, &, *, (, ), _, +, , ?). No other symbols allowed.
Submitted by
anonymous
-
2 years ago
0
Env Var
PCRE2 (PHP >=7.3)
Regex to match Env Variable whole line
Submitted by
anonymous
-
2 years ago
0
Turkish Phone Number
ECMAScript (JavaScript)
It matches all phone numbers in Turkey starting with country and area code. +902121111111 +90 2121111111 +90 212 1111111 +90 212 111 1111...
Submitted by
Erman Seneren
-
2 years ago
1
UAE Emirates ID Number
PCRE2 (PHP >=7.3)
Validate an Emirates ID number, with or without dashes. Please note that this does not implement the Luhn Algorithm, which should be applied in conjunction with simple validation.
Submitted by
Pete Mahon
-
2 years ago
0
img html tag to xml
ECMAScript (JavaScript)
img html tag to xml Make sure it is an img tag before proceed
Submitted by
anonymous
-
2 years ago
-1
Match Consonants
PCRE2 (PHP >=7.3)
Use regex to test whether a letter is a consonant or not. Use /[B-DF-HJ-NP-TV-Z]/ for capitals.
Submitted by
Matthew Hiebing
-
2 years ago
1
Remove trailing commas of PHP array and functions
ECMAScript (JavaScript)
This expression looks for sequences of PHP arrays, either closed with ] or ) with unnecessary trailing commas and captures the content divided into three parts, except by the comma itself. You can use it to search an replace in editors like VSCode like this: Search: ([\])]),(\s\n\s*)([\])]) Replac...
Submitted by
Mateus Machado Luna
-
2 years ago
-1
is
PCRE2 (PHP >=7.3)
Hi it is me
Submitted by
anonymous
-
2 years ago
0
Android Webview
PCRE2 (PHP >=7.3)
Hopefully it can tell if it is android webview or not.
Submitted by
Alp Ates
-
2 years ago
(Last modified 2 years ago)
1
Detect zoom meeting links
PCRE2 (PHP >=7.3)
Find zoom links in text
Submitted by
Artyom Ivanov
-
2 years ago
0
Android Logcat Command-Line-Tools
PCRE2 (PHP >=7.3)
Android logcat command line raw
Submitted by
ArnoFrost
-
2 years ago
1
File extension
ECMAScript (JavaScript)
Retrieve the file extension of a filename
Submitted by
anonymous
-
2 years ago
0
-ltr --time-style='+%s'
PCRE2 (PHP >=7.3)
-ltr --time-style='+%s'
Submitted by
anonymous
-
2 years ago
0
Find lines with more than two dots
ECMAScript (JavaScript)
more than two dots
Submitted by
Leonard Deutsch
-
2 years ago
0
Package from Site
PCRE2 (PHP >=7.3)
Package from Site
Submitted by
anonymous
-
2 years ago
2
US Social Security Number
PCRE2 (PHP >=7.3)
Finds a number that is 9 digits long. Can have spaces or hyphens in between the numbers and will still be found
Submitted by
anonymous
-
2 years ago
1
13-16 digit credit card
PCRE2 (PHP >=7.3)
Finds a number that is 13-16 digits long. Can have spaces or hyphens in between the numbers and will still be found.
Submitted by
Spencer Curtis
-
2 years ago
(Last modified 2 years ago)
1
HTML TAG WITH VALUE AND CHILDREN
ECMAScript (JavaScript)
This regex target each html tag with their children and their value
Submitted by
Florian Caron
-
2 years ago
0
cpf
PCRE2 (PHP >=7.3)
regex cpf
Submitted by
vcatafesta@gmail.com
-
2 years ago
(Last modified 2 years ago)
1
...
84
85
86
87
88
...
298
中英文、数字、全角符号的验证正则
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?:
[^
\x00-\xff
]
|
[
a
-
zA
-
Z0
-
9
\-
_
]
)+
$
/
gm
Open regex in editor
Description
匹配中、英文、数字、全角符号,破折号和下滑线,不匹配除了这些以外的其他字符
Submitted by
nihuge
-
2 years ago