ma11hew28
ma11hew28

Reputation: 126327

May URL scheme contain an underscore?

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

Upvotes: 14

Views: 7649

Answers (1)

Nicole
Nicole

Reputation: 33197

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 / "+" / "-" / "." )

Upvotes: 37

Related Questions