Find URI in text: Difference between revisions

Content added Content deleted
m (how does mediawiki handle the )?)
m (how does mediawiki handle the )?)
Line 15: Line 15:
sample text:
sample text:
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/).


Regular expressions to solve the task are fine, but alternative approaches are welcome too. (otherwise, this task would degrade into 'how to apply a regular expression')
Regular expressions to solve the task are fine, but alternative approaches are welcome too. (otherwise, this task would degrade into 'how to apply a regular expression')