NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Using Regular Expressions to get HTML tags
26738 Using Regular Expressions to get HTML tags http://tech.hostforadollar.com/index.php?op=articulos&task=verart&aid=6 Instead of building a parser that pushes start tags onto a stack and pulls them off once a stop tag is found (if one is found) I find it much easier to use regular expressions. This article is NOT a primer to regular expressions and only shows this particular example PHP > Tips and Tutorials > Web Fetching Oct 16, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  

Bookmark Using Regular Expressions to get HTML tags:


Other links at PHP > Tips and Tutorials > Web Fetching
If you want to display the actual stock quote on your own site then Yahoo finance pages are a good source. You can select the company you need and visit the URL. We will use this information to fetch the html code of the page and find, cut and paste the necessary part.
Category:

Learn how you can retrive actual weather information from Yahoo Weather and display this information on your own site.
Category:

Instead of building a parser that pushes start tags onto a stack and pulls them off once a stop tag is found (if one is found) I find it much easier to use regular expressions. This article is NOT a primer to regular expressions and only shows this particular example
Category:

Learn how to create your own basic link validate script to check link availability on any site.
Category:

This function takes a URL and returns a plain-text version of the page. It uses cURL to retrieve the page and a combination of regular expressions to strip all unwanted whitespace. This function will even strip the text from STYLE and SCRIPT tags, which are ignored by PHP functions such as strip_tags (they strip only the tags, leaving the text in the middle intact).
Category:




Main Category
191
2035
816
286
175
1802
1218
911
1163
7457
70
902
59
2217
174

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 19455
Categories: 1275
Registered Users: 747
Mailing List Subscribers: 2046
Unique Outgoing Hits: 227449

Pagerank Statistics
PR 10
1 site(s)
PR 9
13 site(s)
PR 8
32 site(s)
PR 7
256 site(s)
PR 6
779 site(s)
PR 5
1902 site(s)

PHP News