User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 392,316 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,909 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:

Projects for the Beginner

Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,394
Reputation: vegaseat will become famous soon enough vegaseat will become famous soon enough 
Rep Power: 9
Solved Threads: 172
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #49  
May 22nd, 2006
Hyper Text Markup Language (HTML) is the backbone of a typical web page. Here is a very simple example:
  1. <HTML>
  2. <HEAD>
  3. <TITLE>Link Lesson 1: Link Text</TITLE>
  4. </HEAD>
  5. <BODY>
  6. The <A HREF="http://www.google.com">The Google Site</A> can be used to search
  7. a large number of things, including your favorite edible rhizome.
  8. </BODY>
  9. </HTML>
Write a Python function that extracts the url "http://www.google.com" from the HTML code. In other words, extract a substring from a text that is between two given substrings, here "=" and ">".
Last edited by vegaseat : Mar 1st, 2007 at 3:20 pm. Reason: [code=html] tag
May 'the Google' be with you!
Reply With Quote  
All times are GMT -4. The time now is 10:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC