Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 9,220 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
inefficient int/float(exponent)
PCRE (PHP <7.3)
match a single number
Submitted by
anonymous
-
a year ago
2022-11-27 18:52
(Last modified a year ago)
2022-11-27 18:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
amazIng regex
PCRE (PHP <7.3)
super
Submitted by
anonymous
-
a year ago
2022-11-26 11:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Only if before
PCRE (PHP <7.3)
Only if needle is before target
Submitted by
anonymous
-
a year ago
2022-11-24 05:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validate Date Represented by Integer 1900 - 2099
PCRE (PHP <7.3)
Very simple validation expression that will validate a date in the range of 19000101 through 20991231. These formats are very popular for partitioning and representing dates as Long values or Integers. This does not check for Leap year values, or the months with varying number of days. Please Note:...
Submitted by
Edward Rush
-
a year ago
2022-11-19 16:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fix property names with spaces generated by odata2poco
PCRE (PHP <7.3)
Run in notepad++, replace with \u$1
Submitted by
anonymous
-
a year ago
2022-11-18 10:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Exact match of a word in a phrase: the phrase must be composed by a single word
PCRE (PHP <7.3)
It will match if it's present only the exact word in a phrase, without any other words in the same sentence
Submitted by
anonymous
-
a year ago
2022-11-09 11:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Switching items in a database
PCRE (PHP <7.3)
This is from "Learning the Vi editor", chapter 6 page 96
Submitted by
anonymous
-
a year ago
2022-11-03 18:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Tecnologie Web - Regex
PCRE (PHP <7.3)
REGEX per il progetto di tecnologie web
Submitted by
Federico Benedetti
-
a year ago
2022-11-02 17:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Group first letter, Group Remaining letters, Group White space
PCRE (PHP <7.3)
first groups all white space $1 second groups all first letter of every word except capitals third groups remaining letters
Submitted by
slimelord
-
a year ago
2022-10-31 11:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone Format ( FORK )
PCRE (PHP <7.3)
f
Submitted by
anonymous
-
a year ago
2022-10-31 08:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
cert
PCRE (PHP <7.3)
cert regex
Submitted by
anonymous
-
a year ago
2022-10-26 21:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Good enough IPv6
PCRE (PHP <7.3)
A good enough approximation to IPv6 based on the examples at https://www.ibm.com/docs/en/ts3500-tape-library?topic=functionality-ipv4-ipv6-address-formats
Submitted by
mig8447
-
a year ago
2022-10-26 19:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IBAN SPAIN ESPAÑA WITH SPACES
PCRE (PHP <7.3)
IBAN SPAIN WITH SPACES. ES12 1234 4567 8975 4662 (THIS IS AN EXAMPLE)
Submitted by
anonymous
-
a year ago
2022-10-11 14:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Variables 2
PCRE (PHP <7.3)
chingo de cheves y desmadre
Submitted by
anonymous
-
a year ago
2022-10-10 01:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Spotify ID regex
PCRE (PHP <7.3)
Spotify ID regex
Submitted by
anonymous
-
a year ago
2022-10-06 23:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Convert <a href="x">y</a> to [url=x]y[/url]
PCRE (PHP <7.3)
it took me quite some time to figure out. I hope it'll be helful to someone else.
Submitted by
anonymous
-
a year ago
2022-10-04 14:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
helix word motion
PCRE (PHP <7.3)
helix word motion
Submitted by
anonymous
-
a year ago
2022-10-03 19:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Kafka topic name regex
PCRE (PHP <7.3)
Kafka topic name regex
Submitted by
anonymous
-
a year ago
2022-10-03 07:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
https://regex101.com/r/VrZHR8/1
PCRE (PHP <7.3)
https://regex101.com/r/VrZHR8/1
Submitted by
anonymous
-
a year ago
2022-09-17 18:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract just YouTube IDs
PCRE (PHP <7.3)
You can easily extract YouTube IDs, excluding the paths and parameters.
Submitted by
anonymous
-
a year ago
2022-09-16 13:12
1
2
3
4
5
6
7
...
461
Remove all html from string
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
&
[
a
-
z
]
*
;
)*
(?:
)*
<
[^
>
]
*
>
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
enrico mosca
-
9 months ago
2023-03-14 11:33