logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

matches(): msg#00075

Subject: matches()
Using lxml trunk:
   doc.xpath('descendant-or-self::*[starts-with(lower-case(@href), 
"javascript:")]')

works, but:

   doc.xpath('descendant-or-self::*[matches(@href, "^javascript:", "i")]')

Returns ["i"].  This does not seem right...?


-- 
Ian Bicking | ianb@xxxxxxxxxxxxxx | http://blog.ianbicking.org
             | Write code, do good | http://topp.openplans.org/careers


<Prev in Thread] Current Thread [Next in Thread>