Hello, I'm an 8th grade teacher who uses tutorial videos within forum postings for my students.
I've been successful getitng a pencast (livescribe) into my forum (you can't download actual files for the pencasts, you have to put in an XML refererence within the embed code)
The regular expression I'm using is:
http://[\w]*[\.]*mywebsite\.[\w/&;%-\.]+/([\d\w]+)(?:.*)
I did it this way so when I use $p1 I can just type in
http://www.mywebsite/xmlfilename without using the extension because an extenstion like .mp4 will mess things up (as I'm referencing an XML file. However, the above expression is going to try and embed anything now that has 'mywebsite' domain in the URL.
Is there anyway that I can set $p1 or $p2, etc so it only grabs the filename (as an example, if I had video.mp4, it only grabs video to put in for $p1 instead of video.mp4 -- I don't want the .mp4 or whatever extension included in $p1). I need some kind of extension so AME only embeds the appropriate links. I've tried everything, and even went to
http://www.regexbuddy.com and I got to the point that the above expression sets $p1 without the extension, but now everything embeds.
Help please. My 8th grades will be very appreciative, and me too