Regular Expressions 101

Sponsors

Library entries

0
javascript

Matching anything minimum 1 character, max 50

^.{1,50}$
Submitted by anonymous - a year ago
0
pcre2

email

........
Submitted by ramses - a year ago
0
pcre2

Comentarios en Basic

.
Submitted by anonymous - a year ago
0
pcre2

Validar email

.
Submitted by anonymous - a year ago
1
pcre2

Persian words

Regex for find persian letters in a string
Submitted by Hamed Faryabi - a year ago
0
javascript

Domain from url

Domain from url
Submitted by anonymous - a year ago
0
javascript

Find between Quotes

Find between Quotes
Submitted by anonymous - a year ago

Match fields in XML Sitemap

Vote

0

Regular Expression
pcre2

~
<url>\s* (?> (?> (?><lastmod>\s*(?<mod>[^<]+)\s*</lastmod>) | (?><changefreq>\s*(?<freq>\w+)\s*</changefreq>) | (?><priority>\s*(?<prio>[01](?>\.\d{1,2})?)\s*</priority>) )\s* ){0,3}\s* <loc>\s* (?<uri>[^<]+)\s* </loc>\s* (?> (?> (?><lastmod>\s*(?<mod>[^<]+)\s*</lastmod>) | (?><changefreq>\s*(?<freq>\w+)\s*</changefreq>) | (?><priority>\s*(?<prio>[01](?>\.\d{1,2})?)\s*</priority>) )\s* ){0,3}\s* </url>
~
gxuJ

Description

Loading markdown...
Submitted by Slava Krampetz - a year ago