Find URI in text: Difference between revisions
Content added Content deleted
(jq) |
m (→{{header|jq}}: documentation) |
||
Line 200: | Line 200: | ||
The following uses essentially the same regular expression as is used in the [[#Tcl]] article (as of June 2015), and the results using the given input text are identical. Note in particular that scheme-only strings such as "stop:" are not extracted. |
The following uses essentially the same regular expression as is used in the [[#Tcl]] article (as of June 2015), and the results using the given input text are identical. Note in particular that scheme-only strings such as "stop:" are not extracted. |
||
<lang jq># input: |
<lang jq># input: a JSON string |
||
# output: a stream of URIs |
# output: a stream of URIs |
||
# Each input string may contain more than one URI. |
# Each input string may contain more than one URI. |
||
Line 229: | Line 229: | ||
ftp://domain.name/path/embedded?punct/uation. |
ftp://domain.name/path/embedded?punct/uation. |
||
ftp://domain.name/dangling_close_paren)</lang> |
ftp://domain.name/dangling_close_paren)</lang> |
||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |