isURI package:network-uri

Test if string contains a valid URI (an absolute URI with optional fragment identifier).
Test if string contains a valid URI reference (an absolute or relative URI with optional fragment identifier).