Because, as your link says, "This text is copyright by CMP Media, LLC, and is used with their permission. Further distribution or use is not permitted." Can't use it, sorry. :-(
| [reply] |
You can be inspired by it. Just don't copy it wholesale and call it your own.
| [reply] |
HTML parsing would be the ideal way to do it if one is interested in extracting the links (and/or information from other tags) from the fetched page. I just wanted to make sure that when saving a fetched page, I save all absolute links so that next time when I open the page, I can navigate easily. I wasn't interested in extracting any information from the page. So, I came up with the RegEx above, which does the job in just 1 line. | [reply] |
"does the job"? You mean "does the job most of the time, as long as there is no unusual HTML there".
I'm just trying to point out that parsing HTML with a simple regex will fail from time to time, and should be advised against when there are other easy-to-use technologies that will get it right in just a few more lines of code. Hence, my followup to your post.
| [reply] |