Regular Expressions 101

Sponsors

Library entries

3
pcre2

Email

email format control
Submitted by ahmetbarut - a year ago
1
python

Test end

Test end
Submitted by anonymous - a year ago
1
pcre2

hdfilmcehennemi ana filmler

nothing
Submitted by no one - a year ago
1
python

phone

This regex is decision phone number
Submitted by anonymous - a year ago
1
pcre2

find img without alt

okok
Submitted by anonymous - a year ago
1
java

sfdgvsdgdfg

dgfdgdf
Submitted by anonymous - a year ago
1
pcre2

One or more spaces

Find one or more spaces
Submitted by anonymous - a year ago
1
java

标点

匹配大部分标点
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 - 2 years ago