Client-side developers always had it easy - libraries such as jQuery and Prototype make finding elements on the page reliable and efficient. In PHP, regular expressions tend to get rather messy, DOM calls can be confusing and verbose, and often the string functions just aren’t enough. In this tutorial, I’ll show you how to use the middle ground - the open source PHP Simple HTML DOM Parser library, which provides jQuery-grade awesomeness for easy screen scraping without messy regular expressions.
Related Submissions:
- HTML Parsing and Screen Scraping with the Simple HTML DOM Library If you need to parse HTML, regular expressions aren’t the way to go. In this tutorial, you’ll learn how to use an open source, easily...
- HTML DOM and Easy Screen Scraping in PHP Working with XML is easy in PHP with various extensions such as SimpleXML, however unfortunately HTML is far more tedious. Thankfully however, I found this:...
- Regular Expressions How many times have you had to dig through a long, confusing string for information? This has been a common problem for years. What’s the...
- Advanced Regular Expression Tips and Techniques Regular Expressions are the Swiss Army knife for searching through information for certain patterns. They have a wide arsenal of tools, some of which often...
- Essential Guide To Regular Expressions: Tools and Tutorials Regular expressions are an essential part of any programmer’s toolkit. They can be very handy when you need to identify, replace or modify text, words,...