Anonymous user
URL parser: Difference between revisions
m
→{{header|Groovy}}: cosmetic changes
(→{{header|Groovy}}: Initial solution) |
m (→{{header|Groovy}}: cosmetic changes) |
||
Line 579:
// Results displayed here
println "
| fragment = ${u.fragment}""".stripMargin()
}</lang>
Output:
<pre style="height:30ex;overflow:scroll;">
Parsing foo://example.com:8042/over/there?name=ferret#nose"
Parsing urn:example:animal:ferret:nose"
Parsing jdbc:mysql://test_user:ouupppssss@localhost:3306/sakila?profileSQL=true"
Parsing ftp://ftp.is.co.za/rfc/rfc1808.txt"
Parsing http://www.ietf.org/rfc/rfc2396.txt#header1"
Parsing ldap://[2001:db8::7]/c=GB?objectClass=one&objectClass=two"
Parsing mailto:John.Doe@example.com"
Parsing news:comp.infosystems.www.servers.unix"
Parsing tel:+1-816-555-1212"
Parsing telnet://192.0.2.16:80/"
Parsing urn:oasis:names:specification:docbook:dtd:xml:4.1.2"
=={{header|Haskell}}==
|