Find URI in text: Difference between revisions

Content added Content deleted
(Add nowiki tags)
Line 17: Line 17:


sample text:
sample text:
<nowiki>
this URI contains an illegal character, parentheses and a misplaced full stop:
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/).
http://en.wikipedia.org/wiki/Erich_Kästner_(camera_designer). (which is handled by http://mediawiki.org/).
Line 27: Line 28:
leading junk ftp://domain.name/dangling_close_paren)
leading junk ftp://domain.name/dangling_close_paren)
if you have other interesting URIs for testing, please add them here:
if you have other interesting URIs for testing, please add them here:
</nowiki>


Regular expressions to solve the task are fine, but alternative approaches are welcome too. (otherwise, this task would degrade into 'finding and applying the best regular expression')
Regular expressions to solve the task are fine, but alternative approaches are welcome too. (otherwise, this task would degrade into 'finding and applying the best regular expression')