<div dir="ltr">Is there any way around this, or do we just have to tell our students to use \d{{3,4}} instead of valid regex?<div><br></div><div>Thanks,</div><div>Matt<br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Aug 31, 2013 at 10:03 AM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Yes, we run a derivative of format which allows you to embed Python variables in magic or system calls like this:<br><br></div>myvar='foo'<br></div>%magic {myvar}<br></div><div class="gmail_extra">


<br><br><div class="gmail_quote"><div><div class="h5">On 31 August 2013 09:36, Matt Davis <span dir="ltr"><<a href="mailto:jiffyclub@gmail.com" target="_blank">jiffyclub@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">

<div dir="ltr">Hi all,<div><br></div><div>Software Carpentry is working on a magic for the Notebook for learning regex. It'll take a pattern and some strings and highlight matches. We've run into a problem because curly braces seem to be stripped from magic input before it gets to the function. See an example at <a href="http://nbviewer.ipython.org/6399267" target="_blank">http://nbviewer.ipython.org/6399267</a>.</div>



<div><br></div><div>It looks like the input is being sent through .format or some Jinja formatting because sending in {{ }} results in { }.</div><div><br></div><div>Advice appreciated.</div><div><br></div><div>Thanks,</div>



<div>Matt & Greg</div></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div></div>