Regular Expressions

Lamonte Harris pyth0nc0d3r at gmail.com
Wed Sep 19 01:33:51 CEST 2007


I'm trying to get the Javascript output on when I match the given value in a
var, I want to output that value that I tried to match:

Example JS:
x = '';//some INNERHTML in a document
if(x.innerHTML.match(/(.*)/i))
{
    valuefound = RegEx.$1;
}

I've been reading my python book and tutorials and google search and google
code search trying to understand and I'm still not quite understanding how
to do it.

-Lamonte.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070918/77dfe2f3/attachment.html>


More information about the Python-list mailing list