2 Oct
2009
2 Oct
'09
9:44 p.m.
Hi all, For the module I am maintaining at drupal, I need to select the element which has a specific class. I am using the following query for it: for eg <div class="foo"></div> is selected by the following query. $class = "foo"; $xpath->query("//*[@class = '".$class."']"); But, this fails in case of multiple classes, i.e. does not select this : <div class="foo bar"> </div> I don't have much experience in writing regex, can someone please help me out with this. One more question: is this url valid : http://xyz.com/path with space.html Looking forward. -- Regards, Nitin Kumar Gupta http://publicmind.in/blog/