Anonymous user
Find URI in text: Difference between revisions
m
a real url ending in )
(hopefully we'll not only get regexp solutions) |
m (a real url ending in )) |
||
Line 16:
this URI contains an illegal character, parentheses and a misplaced full stop:
http://en.wikipedia.org/wiki/Erich_Kästner_(camera_designer). (which is handled by http://mediawiki.org/).
and another one just to confuse the parser: http://
Regular expressions to solve the task are fine, but alternative approaches are welcome too. (otherwise, this task would degrade into 'fining and applying the best regular expression')
Line 23:
<lang Pike>string uritext = "this URI contains an illegal character, parentheses and a misplaced full stop:\n"
"http://en.wikipedia.org/wiki/Erich_Kästner_(camera_designer). (which is handled by http://mediawiki.org/).\n"
"and another one just to confuse the parser: http://
array find_uris(string uritext)
|