Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Library entries

0
pcre2
Submitted by anonymous - 6 hours ago

get first number from string

no description available
0
pcre2
Submitted by anonymous - 16 hours ago

ReName_01_

no description available
0
pcre2
Submitted by anonymous - 19 hours ago

6 digit Sort Code without dashes

no description available
0
python
Submitted by anonymous - 21 hours ago

Question 2

no description available
0
pcre
Submitted by anonymous - a day ago

CODA download log

no description available
0
pcre2
Submitted by anonymous - 2 days ago

Dup words

no description available
2
pcre2
Submitted by anonymous - 2 days ago

Dutch zipcodes

no description available
1
pcre2
Submitted by anonymous - 2 days ago

Dutch mobile phone number

no description available
0
pcre
Submitted by anonymous - 2 days ago

Url regex

no description available
0
pcre
Submitted by anonymous - 2 days ago

aaa

no description available
0
pcre2
Submitted by anonymous - 2 days ago

Aplayer Icons Regex

no description available
0
pcre2
Submitted by anonymous - 2 days ago

cisco command

no description available
0
pcre2
Submitted by Habibi Mustafa - 2 days ago

Minify HTML

Remove Whitespace Remove Comment
0
pcre2
Submitted by anonymous - 2 days ago

get main content if has :

no description available
0
python
Submitted by anonymous - 2 days ago

conditional phone numbers

no description available

Cron schedule

Regular Expression
pcre

~
^\s*\#?\s*(?:(?:(?'mins'[0-5]?\d)(?:[-,](?&mins))*)|\*)(?:/\d{1,2})?\s+(?:(?:(?'hours'(?:2[0-3]|[01]?\d))(?:[-,](?&hours))*)|\*)(?:/\d{1,2})?\s+(?:(?:(?'dmon'(?:3[01]|[12]?\d))(?:[-,](?&dmon))*)|\*)(?:/\d{1,2})?\s+(?:(?:(?'mon'(?:1[0-2]|[1-9]))(?:[-,](?&mon))*)|\*)(?:/\d{1,2})?\s+(?:(?:(?'dow'(?:[0-6]|\b(?:mon|tue|wed|thu|fri|sat|sun)\b))(?:[-,](?&dow))*)|\*)(?:/\d{1,2})?\s+.+$
~

Description

Loading markdown...
Submitted by anonymous - 5 years ago