Page 1 of 1

Parsing a variable

Posted: Sun Jun 01, 2014 8:29 am
by timopomer
im a newcomer to php (i come from a diffrent not webbased language) and im trying to parse an html and take each line of the html code and use regex to get the part i want.

now im using the htmldom libary: http://simplehtmldom.sourceforge.net/ and i succeeded in getting the html of a website,but thats where my knowledge of php ends :|

i want to have an end result where i print all the lines of html that i used regex on


anyone here knows how i should attempt to do this? it cant be very difficult :P

Re: Parsing a variable

Posted: Sun Jun 01, 2014 9:20 am
by Celauran
There is, unfortunately, no good way to parse HTML. Is that the only way to accomplish what you need to do?

Re: Parsing a variable

Posted: Sun Jun 01, 2014 9:54 am
by timopomer
it shouldnt be client sided...any suggestions?