Updated at Jan 23
Field Diff
Regex /^([a-zA-Z0-9\-\*]+\.)*([a-z\*]+)$/g/^(?>[a-zA-Z\*][a-zA-Z0-9\-\*]*\.?)+$/
Corpus Text #+ google.com *.google.com google.com *.youtube.com sites.google.com whitehouse.gov whitehouse.gov*user i-have-a-hyphen.co schools-blocked.s3-website-us-east-1.amazonaws.com schools-blocked.s3-website-us-east-1.amazonaws.com/ complex*.patt*.match #- gopher://anything.com http://anything.com www.bad_names.com name.with.path/aaa name-with.query?is-bad=true no-hashtags.allowed#sad schools-blocked.s3-website-us-east-1.amazonaws.com/
Updated at Jan 23
Field Diff
Corpus Text #+ google.com *.google.com google.com *.youtube.com sites.google.com whitehouse.gov whitehouse.gov*user i-have-a-hyphen.co schools-blocked.s3-website-us-east-1.amazonaws.com schools-blocked.s3-website-us-east-1.amazonaws.com/ complex*.patt*.match #- gopher://anything.com http://anything.com www.bad_names.com name.with.path/aaa name-with.query?is-bad=true no-hashtags.allowed#sad
Updated at Jan 22
Field Diff
Regex /^((http|https|ftp):\/\/)?([a-zA-Z0-9\-\*]+\.)*([a-z\*]+)((\/[^\/]+)+)?(\?.*)?(#.*)?$/g/^([a-zA-Z0-9\-\*]+\.)*([a-z\*]+)$/g
Corpus Text #+ google.com *.google.com google.com *.youtube.com sites.google.com whitehouse.gov whitehouse.gov*user i-have-a-hyphen.co schools-blocked.s3-website-us-east-1.amazonaws.com complex*.patt*.match #- gopher://anything.com http://anything.com www.bad_names.com name.with.path/aaa name-with.query?is-bad=true no-hashtags.allowed#sad
Updated at Jan 22
Field Diff
Regex /k[^\s]*s/g/^((http|https|ftp):\/\/)?([a-zA-Z0-9\-\*]+\.)*([a-z\*]+)((\/[^\/]+)+)?(\?.*)?(#.*)?$/g
Corpus Text #+ google.com *.google.com google.com http://google.com/* *.youtube.com http://simple.comsites.google.com sites.google.com/*game*whitehouse.gov *.youtube.com/playlist=1234* *.youtube.com?playlist=1234* whitehouse.gov#terms* whitehouse.gov/*user whitehouse.gov*user i-have-a-hyphen.co schools-blocked.s3-website-us-east-1.amazonaws.com complex*.patt*.match #- gopher://anything.com http://anything.com www.bad_names.com
Updated at Jan 22
Refiddle Do you know PHP, Perl, Python or Java? View the docs to see how you can help out

Allowed Domain Patterns Revisions

Created Jan 22 by Paul Alexander.

Replay this Fiddle