Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

May URL scheme contain an underscore?

Tags:

url

url-scheme

According to the spec for URL, can the scheme have an underscore? E.g., is web_view://example.com a valid URL?

like image 595
ma11hew28 Avatar asked Feb 04 '12 16:02

ma11hew28


1 Answers

No.

A valid RFC 3986 URL scheme must consist of "a letter and followed by any combination of letters, digits, plus ("+"), period ("."), or hyphen ("-")."

    scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
like image 190
Nicole Avatar answered Oct 04 '22 04:10

Nicole