Tag Archives: PHP

Nov 26 2010

Publishing Echo recorded lectures in Moodle

Leave a comment

EchoSystem, the lecture recording service we are running at LSE, provides various methods for publishing links to recorded lectures in Moodle, our VLE (LMS). The “Moodle Publisher” places the links in the course calendar, with each recording listed as a … Continue reading

Posted by: Posted on by Chris Fryer Tagged with: , , , , ,

Apr 23 2008

A Regular Expression to match any URL

15 Comments

A bold claim, but I think I’ve got one: |([A-Za-z]{3,9})://([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((/[-\+~%/\.\w]+)?\??([-\+=&;%@\.\w]+)?#?([\w]+)?)?| An online events booking system I developed doesn’t allow HTML in the event description field, primarily to protect against annoying scripting attacks. But what if you want to provide a … Continue reading

Posted by: Posted on by Chris Fryer Tagged with: