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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 9,740 community submitted regex patterns...
0
Wrap word in json with quotes
PCRE (PHP <7.3)
Wrap word in json with quotes
Submitted by
anonymous
-
2 years ago
0
模式测试
PCRE (PHP <7.3)
测试贪婪/非贪婪模式
Submitted by
anonymous
-
2 years ago
0
Nepali phone number regex
.NET 7.0 (C#)
(\+977)?9\d{8}
Submitted by
anonymous
-
2 years ago
0
Replace all newlines (except double newlines) with spaces
PCRE (PHP <7.3)
In the first capturing group, match any character that isn't a newline, then, match a newline, then, in a non-capturing group, match a newline. Replace the the entire matched sequence with contents of the first capturing group followed by a space.
Submitted by
anonymous
-
2 years ago
0
Network Address
PCRE (PHP <7.3)
-
Submitted by
anonymous
-
2 years ago
0
Illegal characters for directory name
Java 8
Pattern matches to all illegal characters in directory name. Can be useful for normalizing the folder name before creating it
Submitted by
Vlad Yevtushenko
-
2 years ago
0
Guid parser
.NET 7.0 (C#)
Guid parser
Submitted by
anonymous
-
2 years ago
0
XAML invert Grid.Column and Grid.Row to Grid.Row and Grid.Column
.NET 7.0 (C#)
Inverts the 2 attributes
Submitted by
anonymous
-
2 years ago
0
FullName_regex
Java 8
2135
Submitted by
anonymous
-
2 years ago
0
THE BEST RegEx for extracting filename without extension and extension from any path
PCRE (PHP <7.3)
THE BEST RegEx for extracting filename without extension and extension from any path
Submitted by
anonymous
-
2 years ago
0
Cron Syntax
Java 8
This checks the syntax for CRON
Submitted by
Till Hummel
-
2 years ago
0
Bangladeshi Mobile and Telephone Number
Java 8
Matches with Bangladeshi Mobile and Telephone Numbers
Submitted by
kaziNAHIAN
-
2 years ago
0
test1
PCRE (PHP <7.3)
test1
Submitted by
anonymous
-
2 years ago
0
Letras, número e traço
Golang
Substitui tudo que não for letra, número e traço
Submitted by
anonymous
-
2 years ago
0
oracle_package_new_type
Golang
find/replace oracle package body new type
Submitted by
anonymous
-
2 years ago
0
Intervelead 2 of 5 custas
PCRE (PHP <7.3)
Intervelead 2 of 5 custas
Submitted by
anonymous
-
2 years ago
0
IP Address Validator
Java 8
Validates IPv4 Address for Java
Submitted by
krzysp, jpalvesloiola
-
2 years ago
0
extended nginx log format
PCRE (PHP <7.3)
log_format timed '$http_x_forwarded_for - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$remote_addr" ' '$request_time $upstream_response_time $pipe';
Submitted by
Pei-Tang Huang
-
2 years ago
0
Postgresql JDBC URI
Java 8
Formats jdbc:postgresql:database jdbc:postgresql:/ jdbc:postgresql://host/database jdbc:postgresql://user:password@host/database...
Submitted by
fantabulum
-
2 years ago
0
UK PostCode Validation
.NET 7.0 (C#)
Flexible postcode validation with or without space as outlined here, but added optional space for flexibility https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/488478/Bulk_Data_Transfer_-_additional_validation_valid_from_12_November_2015.pdf
Submitted by
anonymous
-
2 years ago
1
...
474
475
476
477
478
...
487
IPv4 w/ w/o port validation and localhost string supported
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
1
[
0
-
9
]
[
0
-
9
]
|
[
0
-
9
]
{1,2}
)
(
\\
.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
1
[
0
-
9
]
[
0
-
9
]
|
[
0
-
9
]
{1,2}
)
){3}
)
|
(
localhost
)
)
(
:
(
(
6553
[
0
-
5
]
)
|
(
655
[
0
-
2
]
[
0
-
9
]
)
|
(
65
[
0
-
4
]
[
0
-
9
]
{2}
)
|
(
6
[
0
-
4
]
[
0
-
9
]
{3}
)
|
(
[
1
-
5
]
[
0
-
9
]
{4}
)
|
(
[
0
-
5
]
{1,5}
)
|
(
[
0
-
9
]
{1,4}
)
)
)?
$
|
^$
/
gm
Open regex in editor
Description
IPv4 w/ w/o port validation and localhost string supported
Submitted by
anonymous
-
2 years ago