Previous: Quoted Constructs, Up: Common Patterns
(([[:digit:]]{1,3}"."){3}([[:digit:]]{1,3}))
hex4 ([[:xdigit:]]{1,4}) hexseq ({hex4}(:{hex4}*)) hexpart ({hexseq}|({hexseq}::({hexseq}?))|::{hexseq}) IPv6address ({hexpart}(":"{IPv4address})?)
See RFC2373 for details.
(([^:/?#]+):)?("//"([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
This pattern is nearly useless, since it allows just about any character to appear in a URI, including spaces and control characters. See RFC2396 for details.