Regular Expressions 101

Community Patterns

1

youku video_id

PCRE (PHP <7.3)
parse youku video id
Submitted by egg- - 8 years ago
1

youku

PCRE (PHP <7.3)
parse youku video id
Submitted by egg- - 8 years ago
3

hj

PCRE (PHP <7.3)
hj
Submitted by hj - 8 years ago
1

mytest

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago
1

soundcloud url

PCRE (PHP <7.3)
soundcloud url in a link
Submitted by ogerly - 8 years ago

Extract domain and path from video embeds

1

Regular Expression
PCRE (PHP <7.3)

/
src=["|']?((?:https?:\/\/)?(?:www\.)?([^\/]+)([^\?|^"|^'|^\s]*))
/
igm

Description

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