javascript RFC 3986 implementation? [closed]
开发者_运维技巧
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionIs there already a javascript function/library/snippet written for the validation of the RFC 1738 URL specifications listed at http://www.ietf.org/rfc/rfc3986.txt?
From http://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/plugin/uri.js
Implements RFC 3986 for parsing/formatting URIs.
You can find usage examples in the unit tests.
No, but I've written an article that covers the related RFC-3986 (which updates 1738):
Regular Expression URI Validation
I've set up the article so that you can double-click on any of the regexes to get a correctly formatted snippet for a variety of languages.
精彩评论