Re: GetElementByClass?

From: Date: Sat, 03 Apr 2010 14:23:51 +0000
Subject: Re: GetElementByClass?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-303777@lists.php.net to get a copy of this message
Why don't you just use REGEX? I don't know any possibility to easily process contents which are not valid XML/XHTML just because there's no library to load such stuff (but put me in right there). I'm not an expert of REGEX, but I think the following would do it: /\<p\s*class\=\"question\"\s*\>(.*)\<\/p\> (my first contribute here, I beg your pardon if something went wrong) Regards, Valentin Dreismann
regexp is the best fit here and not much effort to do. Especially consider this is only for one time use. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

« previous php.general (#303777) next »