Sephr


Member since 01/16/2009

Name: Elijah Grey

Website: http://eligrey.com/

1 snippets

1297 profile views

3 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

Sephr's Recent SnippetsTagged html5



« Prev 1 Next »
Use this to extract an HTML5 origin from a URI. $1 is the origin. The square brackets are there to support IPv6 addresses. Example: var html5OriginRegex = /^([\w-]+:\/*\[?[\w\.:-]+\]?(?::\d+)?).*/; "http://www.google.com:42/foo/bar/...
0 457 posted 15 years ago by Sephr
« Prev 1 Next »