Regular Expressions 101

Sponsors

Library entries

2
pcre

Extract .mp3 url

no description available
Submitted by anonymous - 7 years ago
2
pcre

bash

bash
Submitted by b10n1k - 7 years ago
2
pcre

Float Representation

no description available
Submitted by S-YOU - 7 years ago
2
pcre

Chinese slang words regex

no description available
Submitted by anonymous - 7 years ago
2
pcre

Common Taiwanese slang regex

no description available
Submitted by anonymous - 7 years ago
2
pcre

HTML comments

Groups HTML comments that are between .
Submitted by Greaka - 7 years ago
2
pcre

BRAZILIAN VEHICLE PLATE

no description available
Submitted by anonymous - 7 years ago
2
pcre

Fix Card Def

no description available
Submitted by yyrkroon - 7 years ago
2
pcre

LUN UID

no description available
Submitted by anonymous - 7 years ago
2
pcre

END on new line

no description available
Submitted by anonymous - 7 years ago
2
pcre

Parse Cabrillo Amateur Radio Log Record

no description available
Submitted by NY4I - 7 years ago
2
pcre

comment

no description available
Submitted by anonymous - 7 years ago
2
pcre

Find url('./xxx)

no description available
Submitted by anonymous - 7 years ago
2
pcre

ukrainian alphabet

no description available
Submitted by benderlio - 7 years ago

URL extractor

Vote

2

Regular Expression
pcre

/
^(?#protocol)(?<protocol>(?:ht|f)tps?)\:(?:\/\/)?(?#user/password)(?:(?<user>\S+?)(?::(?<password>\S+))?@)?(?#domaine)(?<domain>(?:(?:[a-z\x{00a1}-\x{ffff}0-9-]++\.)+(?#top_level_domain)(?<top_level_domain>[a-z\x{00a1}-\x{ffff}]{2,}))|(?<ip>(?:1?\d{1,2}|2[0-4]\d|25[0-5])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){3}))(?#port)(?::(?<port>\d{1,5}))?(?#directory)(?<directory>\/(?:[^?#\s])*)?(?#query)(?:\?(?<query>[^#\s]*))?(?#anchor)(?:#(?<anchor>[^\s]*))?$
/
guim

Description

Loading markdown...
Submitted by Gilles Marchand - 7 years ago