Regular Expressions 101

Sponsors

Library entries

1
pcre

HTML color search

Searches for hex colors in HTML code.
Submitted by Barlean - 9 years ago
1
pcre

tesdsa

dsadsadsadsa
Submitted by dasdasdsa - 9 years ago
1
pcre

Match a date in SQL Server format

no description available
Submitted by anonymous - 9 years ago
1
pcre

1

23123
Submitted by anonymous - 9 years ago
1
pcre

test url

no description available
Submitted by anonymous - 9 years ago
1
pcre

regular expression - with space

no description available
Submitted by anonymous - 9 years ago
1
pcre

quotes and escapes

no description available
Submitted by zgorawski - 9 years ago
1
pcre

asd

asd
Submitted by anonymous - 9 years ago
1
pcre

YOLO

Substitutes "you only live once" with "YOLO".
Submitted by anonymous - 9 years ago
1
pcre

Number invalidator

Including +/-12.3. etc. Excluding MH12, etc.
Submitted by HMK - 9 years ago
1
pcre

number validator

exclude data with space and "-"
Submitted by HMK - 9 years ago
1
pcre

Match Markup

no description available
Submitted by A - 9 years ago

Youtube id und parameter extraction

Vote

1

Regular Expression
pcre

%
# # Inspired by http://stackoverflow.com/questions/6556559/youtube-api-extract-video-id # Example: https://www.youtube.com/watch?v=o8QuLYXKNCg&rel=0&autoplay=1 # # Match any youtube URL (?:https?://)? # Optional scheme. Either http or https (?:www\.)? # Optional www subdomain (?: # Group host alternatives youtu\.be/ # Either youtu.be, | youtube\.com # or youtube.com (?: # Group path alternatives /embed/ # Either /embed/ | /v/ # or /v/ | /watch\?v= # or /watch\?v= ) # End path alternatives. )? # End host alternatives. ([\w-]{10,12}) # Allow 10-12 for 11 char youtube id. (?:[&?](.*)) # Optional Parameters $
%
x

Description

Loading markdown...
Submitted by erotanimul (co-author ;) - 7 years ago