I am fairly certain that the problem with the jsFiddle embed is in the regular expression matching embedly uses to parse the ebmeded url. jsFiddle URLs can have a wide range of forms as they communicate the configuration of the fiddle using extra url paths. As a preliminary investigation I sent an inquiry to the jsFiddle mailing list and perhaps Zalun et al will come up with an answer. Then I will contact <a href="http://embed.ly">embed.ly</a> and hopefully they will get jsFiddle on the provider list.<div>
<br></div><div>==========================================<br><div><br></div><div>A platform I work with (<a href="http://p2pu.org/" target="_blank">p2pu.org</a>) has attempted to use <a href="http://embed.ly/" target="_blank">embed.ly</a> to come up with a shortcode to embed jsFiddles into their platofrm via their configuration of CKEditor. Here is an example of the embed shortcode that works:<div>
<br></div><div>[embed:<a href="http://jsfiddle.net/dandiebolt/agaCq/" target="_blank">http://jsfiddle.net/dandiebolt/agaCq/</a>]<br><div><br></div><div>Although jsFiddle is not on Embedly's provider list</div><div><br>
</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><a href="http://api.embed.ly/v1/api/services" target="_blank" style="color: rgb(0, 0, 204); ">http://api.embed.ly/v1/api/services</a></span></div>
<div><br></div><div>various forms of the jsFiddle URL do embed. I am not sure why that happens but I suspect that the reason it does not embed in other cases is because they are using a overly simplified regular expression to match jsFiddle URLs. These details may not be to interesting to you but I would like to pose the independent question as to what regular expression does match a jsFiddle URL taking into account all the features a jsFiddle may have:<div>
<ul><li>anonymous fiddles (no user)</li><li>characters encoding the jsFiddle ID</li><li>jsFiddle versions</li><li>stylesheets</li><li>show</li><li>default embed with no tabs specified</li><li>embed with tabs specified.</li>
<li>dependancies</li></ul></div><div>Here is my crude attempt to write a regexp for a jsFiddle URL with various capturing parentheses tossed in:</div><div><br></div><div><div>/</div><div> (jsfiddle\.net\/)</div><div> ([a-zA-Z0-9]\/)?</div>
<div> ([a-zA-Z0-9]\/)</div><div> (show\/|embedded\/((html|css|js|resources|result){0,5}\/([a-zA-Z0-9])?\/)?</div><div>/</div></div><div><br></div><div>I have no idea what characters are allowed for the jsFiddle ID or user names so I just specified alphanumerics. Also I overlooked version numbers, & dependancies when I typed this regexp. Moreover I never tested it.</div>
</div></div><div><br></div><div>So if someone wants a challenge I would like to find the regexp that matches all jsFiddle URLs without getting too anal. The key area is focus on is the embedded path which can contain tabs (and you apparently can list a tab twice) because the whole goal of embedly is to embed the jsFiddle URL in an iframe on blog or cms.</div>
<div><br></div><div>My overall goal is to get <a href="http://embed.ly">embed.ly</a> to support jsFiddle embeds and I will bird dog that issue but it would be a nice piece of information to have a regexp for matching any jsFiddle.</div>
<div><br></div><br></div></div>