Parsing a variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
timopomer
Forum Newbie
Posts: 2
Joined: Sun Jun 01, 2014 8:19 am

Parsing a variable

Post 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
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Parsing a variable

Post by Celauran »

There is, unfortunately, no good way to parse HTML. Is that the only way to accomplish what you need to do?
timopomer
Forum Newbie
Posts: 2
Joined: Sun Jun 01, 2014 8:19 am

Re: Parsing a variable

Post by timopomer »

it shouldnt be client sided...any suggestions?
Post Reply