On Nov 28, 2007 1:23 PM, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Nov 28, 11:32 am, "Ryan Krauss" <[EMAIL PROTECTED]> wrote:
> > I need to parse the following string:
> >
> > $$\pmatrix{{\it x_2}\cr 0\cr 1\cr }=\pmatrix{\left({{{\it m_2}\,s^2
> > }\over{k}}+1\right)\,{\it x_1}-{{F}\over{k}}\cr
Interesting. Thanks Paul and Tim. This looks very promising.
Ryan
On Nov 28, 2007 1:23 PM, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Nov 28, 11:32 am, "Ryan Krauss" <[EMAIL PROTECTED]> wrote:
> > I need to parse the following string:
> >
> > $$\pmatrix{{\it x_2}\cr 0\cr 1\cr }=\pmatrix{\left
Paul McGuire wrote:
> On Nov 28, 1:23 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
>> As Tim Grove points out, ...
>
> s/Grove/Chase/
>
> Sorry, Tim!
No problem...it's not like there aren't enough Tim's on the list
as it is. :)
-tkc
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 28, 1:23 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> As Tim Grove points out, ...
s/Grove/Chase/
Sorry, Tim!
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 28, 11:32 am, "Ryan Krauss" <[EMAIL PROTECTED]> wrote:
> I need to parse the following string:
>
> $$\pmatrix{{\it x_2}\cr 0\cr 1\cr }=\pmatrix{\left({{{\it m_2}\,s^2
> }\over{k}}+1\right)\,{\it x_1}-{{F}\over{k}}\cr -{{{\it m_2}\,s^2\,F
> }\over{k}}-F+\left({\it m_2}\,s^2\,\left({{{\it m_
> The trick is that there are extra curly braces inside the \pmatrix{ }
> strings and I don't know how to write a regexp that would count the
> number of open and close curly braces and make sure they match, so
> that it can find the correct ending curly brace.
This criterion is pretty much a deal