Jump to content

How can i use php to search for a particular word in a web page source ?


jd2007

Recommended Posts

Below is the page source for http://www.m-w.com/dictionary/car:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="Description" content="Definition of car from the Merriam-Webster Online Dictionary with audio pronunciations, thesaurus, Word of the Day, and word games." />
	<meta name="Keywords" content="car, meaning, definition, define, dictionary, dictionaries, glossary, glossaries, free, online, english, language, words, merriam-webster, websters" />
	<meta name="robots" content="Index, follow" />
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Definition of car - Merriam-Webster Online Dictionary</title>
	<link rel="icon" href="/favicon.ico" type="image/x-icon" />		
	<link href="/css/global.css" rel="stylesheet" type="text/css" />

	<link href="/css/inner.css" rel="stylesheet" type="text/css" />
	<link href="/css/search.css" rel="stylesheet" type="text/css" />		
	<script type="text/javascript" src="/js/googleads.js"></script>		
	<script type="text/javascript" src="/js/menus.js"></script>		
	<script type="text/javascript" src="/js/global.js"></script>		
	<script type="text/javascript" src="/js/temp/accipiter.js"></script>		
	<script type="text/javascript">
		<!--				

			// This function initialize the page.
			function initAccipiterPage ()
				{	// Initialize the page as usual.
					initPage();

					// Set the area and keyword to pass along to accipiter.
					setGlobalCreativeData("DICT", "car");

					// Load the creatives.
					loadCreatives();
				}; // function initAccipiterPage ()

			// Set token variable for external javascript
			var token	= "car";
		// -->
	</script>
</head>
<body class="page search dictionary" onload="initAccipiterPage()">

	<div id="page_wrapper">
		<table border="0" cellpadding="0" cellspacing="0" id="content">
			<tr>
				<td class="left_col">
					<div class="logo"><a href="/"><img src="/images/hdr_mw_logo_area.gif" alt="Go to homepage." /></a></div>
					<dl id="nav_menu" class="nav_menu">
						<dd id="menu_home"><a href="/"><img src="/images/button.gif" alt="Return to the home page." /></a><a href="/">Home</a></dd>
						<dd id="menu_visit"><a href="#" onclick="return show_submenu('nav_menu', 'visit_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="#" onclick="return show_submenu('nav_menu', 'visit_');">Visit Our Sites</a></dd>

						<dd id="visit_unabridged" class="submenu"><a href="http://www.merriam-websterunabridged.com/">Unabridged Dictionary</a></dd>
						<dd id="visit_learners" class="submenu"><a href="http://www.learnersdictionary.com/">Learner's Dictionary</a></dd>							
						<dd id="visit_word_central" class="submenu"><a href="http://wordcentral.com/">Word Central for Kids</a></dd>
						<dd id="visit_collegiate" class="submenu"><a href="http://www.merriam-webstercollegiate.com/">Collegiate Dictionary</a></dd>
						<dd id="menu_ps"><a href="#" onclick="return show_submenu('nav_menu', 'ps_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="#" onclick="return show_submenu('nav_menu', 'ps_');">Premium Services</a></dd>
						<dd id="ps_unabridged" class="submenu"><a href="http://unabridged.merriam-webster.com/?refr=U_mwol_nav">Unabridged Dictionary</a></dd>

						<dd id="ps_collegiate" class="submenu"><a href="http://www.merriam-webstercollegiate.com/?refr=C_mwol_nav">Collegiate Dictionary</a></dd>
						<dd id="ps_britannica" class="submenu"><a href="http://www.britannica.com/?source=mwnav">Britannica</a></dd>
						<dd id="ps_muser_licenses" class="submenu"><a href="/premium/institutions.html">Institutional Subscriptions</a></dd>
						<dd id="menu_downloads"><a href="#" onclick="return show_submenu('nav_menu', 'downloads_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/downloads/index.htm">Downloads</a></dd>
						<dd id="downloads_toolbar" class="submenu"><a href="/downloads/toolbar/index.htm">Toolbar</a></dd>
						<dd id="downloads_sidebar_tab" class="submenu"><a href="/downloads/sidebar/index.htm">Sidebar Tab</a></dd>

						<dd id="downloads_lookup_button" class="submenu"><a href="/downloads/button/index.htm">Lookup Button</a></dd>
						<dd id="downloads_search_boxes" class="submenu"><a href="/downloads/searchbox/index.htm">Search Boxes</a></dd>
						<dd id="downloads_firefox_tools" class="submenu"><a href="/downloads/firefox/index.htm">Firefox Tools</a></dd>
						<dd id="menu_word"><a href="#" onclick="return show_submenu('nav_menu', 'word_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/cgi-bin/mwwod.pl">Word of the Day</a></dd>
						<dd id="word_todays_word" class="submenu"><a href="/cgi-bin/mwwod.pl">Today's Word</a></dd>
						<dd id="word_archive" class="submenu"><a href="/cgi-bin/wodcalendar.pl">Archive</a></dd>

						<dd id="word_subscribe" class="submenu"><a href="/word/subscribe.htm">Sign Up</a></dd>
						<dd id="word_help" class="submenu"><a href="/word/subhelp.htm">Subscriber Help</a></dd>
						<dd id="word_rss_feed" class="submenu"><a href="/word/index.xml">RSS Feed</a></dd>
						<dd id="word_pod_cast" class="submenu"><a href="/word/index.xml"><img src="/images/feedpodcast.gif" alt="RSS Feed" /></a></dd>
						<dd id="word_sms_message" class="submenu"><a href="/word/askmenow.htm">SMS Message</a></dd>
						<dd id="menu_game"><a href="#" onclick="return show_submenu('nav_menu', 'game_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/game/index.htm">Word Games</a></dd>

						<dd id="game_todays_game" class="submenu"><a href="/game/index.htm">Today's Game</a></dd>
						<dd id="game_more_games" class="submenu"><a href="/game/more.htm">More Word Games</a></dd>
						<dd id="game_daily_crossword" class="submenu"><a href="/game/crossword.htm">Daily Crossword</a></dd>
						<dd id="menu_open_dict"><a href="#" onclick="return show_submenu('nav_menu', 'open_dict');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="http://www3.merriam-webster.com/opendictionary/">Open Dictionary</a></dd>
						<dd id="open_dict_browse_recent" class="submenu"><a href="http://www3.merriam-webster.com/opendictionary/newword_display_recent.php">Latest Entries</a></dd>
						<dd id="open_dict_browse_alpha" class="submenu"><a href="http://www3.merriam-webster.com/opendictionary/newword_display_alpha.php">Alphabetical Browse</a></dd>

						<dd id="open_dict_browse_cat" class="submenu"><a href="http://www3.merriam-webster.com/opendictionary/newword_display_cat.php">Browse Categories</a></dd>
						<dd id="open_dict_submit_entry" class="submenu"><a href="http://www3.merriam-webster.com/opendictionary/guide.php">Submit an Entry</a></dd>
						<dd id="menu_spell"><a href="#" onclick="return show_submenu('nav_menu', 'spell_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/spell/index.htm">Spelling Bee Hive</a></dd>
						<dd id="spell_headquarters" class="submenu"><a href="/spell/hivehq.htm">Hive Headquarters</a></dd>
						<dd id="spell_champion" class="submenu"><a href="/spell/winner.htm">Spelling Champion</a></dd>
						<dd id="spell_quiz" class="submenu"><a href="/cgi-bin/spquiz.pl">Spelling Quiz</a></dd>

						<dd id="spell_reform" class="submenu"><a href="/info/spelling-reform.htm">Spelling Reform</a></dd>
						<dd id="spell_prizes" class="submenu"><a href="/spell/prizes.htm">Prizes</a></dd>
						<dd id="spell_phat" class="submenu"><a href="/spell/phat.htm">The Story of "Phat"</a></dd>
						<dd id="spell_winning_words" class="submenu"><a href="/spell/words.htm">Winning Words</a></dd>
						<dd id="spell_panelists" class="submenu"><a href="/spell/panelists.htm">Word Panelists</a></dd>
						<dd id="menu_wftw"><a href="#" onclick="return show_submenu('nav_menu', 'wftw_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/cgi-bin/wftw.pl">Word for the Wise</a></dd>

						<dd id="wftw_todays_broadcast" class="submenu"><a href="/cgi-bin/wftw.pl">Today's Broadcast</a></dd>
						<dd id="wftw_archive" class="submenu"><a href="/cgi-bin/wftw_arcindex.pl">Archive</a></dd>
						<dd id="wftw_about" class="submenu"><a href="/wftw/about.htm">About WFTW</a></dd>
						<dd id="menu_store"><a href="#" onclick="return show_submenu('nav_menu', 'store_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/store/index.htm">Online Store</a></dd>
						<dd id="store_books_cds" class="submenu"><a href="/store/books_and_cds.htm">Books and CD-Roms</a></dd>
						<dd id="store_services" class="submenu"><a href="/cgi-bin/unabridged_sub.pl?refr=P_mwol_nav_store">Online Services</a></dd>

						<dd id="store_handhelds" class="submenu"><a href="/store/handhelds.htm">Handhelds</a></dd>
						<dd id="store_palm_pck_pc" class="submenu"><a href="/store/palm.htm">Palm and Pocket PC</a></dd>
						<dd id="store_wireless" class="submenu"><a href="/store/wireless.htm">Wireless</a></dd>
						<dd id="menu_help"><a href="#" onclick="return show_submenu('nav_menu', 'help_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/help/index.htm">Help</a></dd>
						<dd id="help_word_lookup" class="submenu"><a href="/help/searching.htm">Looking Up a Word</a></dd>
						<dd id="help_faq" class="submenu"><a href="/help/faq.htm">FAQ</a></dd>

						<dd id="help_citing_dict" class="submenu"><a href="/help/citing.htm">Citing the Dictionary</a></dd>
						<dd id="help_audio_pron" class="submenu"><a href="/help/audiofaq.htm">Audio Pronunciations</a></dd>
						<dd id="help_word_games" class="submenu"><a href="/help/game/help.htm">Word Games Help</a></dd>
						<dd id="help_toolbar" class="submenu"><a href="/help/toolbar/help.htm">Toolbar Help</a></dd>
						<dd id="help_cdrom_support" class="submenu"><a href="/help/support.htm">CD-ROM Support</a></dd>
						<dd id="menu_info"><a href="#" onclick="return show_submenu('nav_menu', 'info_');"><img src="/images/button.gif" alt="Expand/collapse menu." /></a><a href="/info/index.htm">About Us</a></dd>

						<dd id="info_faq" class="submenu"><a href="/info/faq.htm">Merriam-Webster FAQ</a></dd>
						<dd id="info_press" class="submenu"><a href="/info/press.htm">Press Releases</a></dd>
						<dd id="info_ads" class="submenu"><a href="/info/advertising.htm">Advertising Info</a></dd>
						<dd id="info_retailers" class="submenu"><a href="/info/retailers.htm">Retailers</a></dd>
						<dd id="info_contact" class="submenu"><a href="/info/contact.htm">Contact Us</a></dd>
						<dd id="info_privacy" class="submenu"><a href="/info/privacy.htm">Privacy Policy</a></dd>

						<dd id="info_copyright" class="submenu"><a href="/info/copyright.htm">Copyright Notice</a></dd>
					</dl>
				</td>
				<td class="right_col">
					<div class="banner_ad">
						<div id="google_creative_2">
							<script type="text/javascript">
								<!-- 
									placeCreative("google_creative_2", "BANNER", "tb", "car");
								// -->
							</script>
						</div>

					</div>
					<div class="hnav_bar">
						<ul><li class="label">Also Visit</li><li><a href="http://www.merriam-websterunabridged.com/">Unabridged Dictionary</a></li><li><a href="http://www.learnersdictionary.com/">Learner's Dictionary</a></li><li><a href="http://wordcentral.com">Word Central for Kids</a></li><script type="text/javascript">
							if ( !isScreen800x600() )
								{ document.write('<li><a href="http://www.merriam-webstercollegiate.com/">Collegiate Dictionary</a><li class="last"><a href="http://www.britannica.com/?source=mwtab">Encyclopædia Britannica</a></li>');
								}
							else
								{	document.write('<li class="last"><a href="http://www.merriam-webstercollegiate.com/">Collegiate Dictionary</a>');
								}; 								
						</script><noscript><li><a href="http://www.merriam-webstercollegiate.com/">Collegiate Dictionary</a><li class="last"><a href="http://www.britannica.com/?source=mwtab">Encyclopædia Britannica</a></li>
						</noscript>							
						</ul>
					</div>
					<div class="search_bar">

						<form id="search_form" action="/dictionary" method="get" onsubmit="return lookup('search_form');">
							<div>
								<input id="source_dict" name="book" type="radio" value="dictionary" checked="checked" /><label for="source_dict">Dictionary</label>
								<input id="source_thes" name="book" type="radio" value="thesaurus" /><label for="source_thes">Thesaurus</label>
								<input id="source_spanish" name="book" type="radio" value="spanish_english" /><label for="source_spanish">Spanish/English</label>
								<input id="source_medical" name="book" type="radio" value="medical" /><label for="source_spanish">Medical</label>
								<input id="search_box_terms" name="va" type="text" class="text_field" value="" maxlength="50" />

								<input type="image" class="search_button" src="/images/search_button.gif" />
							</div>
						</form>
					</div>
					<div style="clear: both; float: none;"></div>
					<div class="ad_space">
						<script src="/js/livesearch_pop.js"></script>
						<div class="tool_box need_more">

							<div class="content">
								<div class="header">Search "car" in:</div>
								<ul>
									<li><a href="/cgi-bin/thesaurus?book=Thesaurus&va=car">Thesaurus</a></li>							
									<li><a href="/cgi-bin/spanish?book=Spanish&va=car">Spanish/English</a></li>
									<li><a href="/medical/car">Medical Dictionary</a></li>
									<li><a href="http://www3.merriam-webster.com/opendictionary/newword_search.php?word=car">Open Dictionary</a></li>

								</ul>										
								<div class="header">Browse words next to:</div>
								<ul>
									<li><a href="/browse/car">car</a></li>
								</ul>
							</div>
							<dl class="browse_dict_tool">
								<dt>Browse the Dictionary:</dt>

								<dd><a href="/browse/a">A</a></dd>
								<dd><a href="/browse/b">B</a></dd>
								<dd><a href="/browse/c">C</a></dd>
								<dd><a href="/browse/d">D</a></dd>
								<dd><a href="/browse/e">E</a></dd>
								<dd><a href="/browse/f">F</a></dd>

								<dd><a href="/browse/g">G</a></dd>
								<dd><a href="/browse/h">H</a></dd>
								<dd><a href="/browse/i">I</a></dd>
								<dd><a href="/browse/j">J</a></dd>
								<dd><a href="/browse/k">K</a></dd>
								<dd><a href="/browse/l">L</a></dd>

								<dd><a href="/browse/m">M</a></dd>
								<dd><a href="/browse/n">N</a></dd>
								<dd><a href="/browse/o">O</a></dd>
								<dd><a href="/browse/p">P</a></dd>
								<dd><a href="/browse/q">Q</a></dd>
								<dd><a href="/browse/r">R</a></dd>

								<dd><a href="/browse/s">S</a></dd>
								<dd><a href="/browse/t">T</a></dd>
								<dd><a href="/browse/u">U</a></dd>
								<dd><a href="/browse/v">V</a></dd>
								<dd><a href="/browse/w">W</a></dd>
								<dd><a href="/browse/x">X</a></dd>

								<dd><a href="/browse/y">Y</a></dd>
								<dd><a href="/browse/z">Z</a></dd>
							</dl>
						</div>
						<div class="britannica_search_tool">
							<form action="http://www.britannica.com/search" method="get">
								<div>
									<input name="query" type="text" class="text_box" value="car" />

									<input type="image" src="/images/britannica/go_button.gif" class="submit_button" />
								</div>
								<script type="text/javascript">
								<!--
								var control = document.getElementById("search_box_terms");						
								if ( control )
									{	control.focus();
									};  
								// -->
								</script>
							</form>
						</div>
						<div id="main_ad">
							<script type="text/javascript">
								<!-- 
									placeCreative("main_ad", "300x250", "rec1", "car");
								// -->
							</script>
						</div>

						<div id="google_creative_1"></div>			
					</div>
					<div class="page_content">
						<div class="page_content_box">
							<div class="word_definition">
								<h1>car</h1>
46 entries found for <b>car</b>. The first 10 are listed below.<br>
To select an entry, click on it.
For more results, <a href="javascript:promoWin()" >click here</a>.

<form name="entry"  method=post action="/cgi-bin/dictionary"><table border="0" cellpadding="0" cellspacing="0" valign="top"><tr><td>
<input type=hidden name=hdwd value="car"><input type=hidden name=listword value="car"><input type=hidden name=book value=Dictionary> <select style="font-family:arial;font-size:9pt;" name=jump size=6 onChange="document.entry.submit(this.form)">
<option>car
<option>CAR
<option>bar car
<option>bumper car
<option>cabin car
<option>cable car
<option>car bomb
<option>car coat
<option>car park
<option>car pool
</select><input type=hidden name=list value="car=166014;CAR=166024;bar car=84270;bumper car=147934;cabin car=154710;cable car=154879;car bomb=166618;car coat=167553;car park=169878;car pool=170178"></td><td valign="top">
 <input type=submit value="Go"></td></tr></table>
</form>
Main Entry:	<b>car</b> <a href="javascript:popWin('/cgi-bin/audio.pl?car00001.wav=car')"><img src="/images/audio.gif" border=0 height=11 width=16></a><br>

Pronunciation:	<tt>'kär, <i>dial also</i> 'kor, 'kyär</tt><br>
Function:	<i>noun</i><br>
Etymology:	Middle English <i>carre,</i> from Anglo-French, from Latin <i>carra,</i> plural of <i>carrum,</i> alteration of <i>carrus,</i> of Celtic origin; akin to Old Irish & Middle Welsh <i>carr</i> vehicle; akin to Latin <i>currere</i> to run<br>

<b>1</b> <b>:</b> a vehicle moving on wheels: as <b>a</b> <i>archaic</i> <b>: <a href="/dictionary/carriage"><font size="-1">CARRIAGE</font></a>, <a href="/dictionary/chariot"><font size="-1">CHARIOT</font></a></b> <b>b</b> <b>:</b> a vehicle designed to move on rails (as of a railroad) <b>c</b> <b>: <a href="/dictionary/automobile"><font size="-1">AUTOMOBILE</font></a></b><br><b>2</b> <b>:</b> the passenger compartment of an elevator<br><b>3</b> <b>:</b> the part of an airship or balloon that carries the passengers and cargo
							</div>

							<div class="result_ad healthline">
								<!-- The Heathline Ads -->
								<script type="text/javascript">
									<!--
										var healthlineSearchTerm = "car";
										var healthlineHost = 'www.healthline.com';
									-->
								</script>						
								<script type="text/javascript" src="http://www.healthline.com/js/partner/mw/link.js"></script>
							</div>
							<div class="result_ad">
								<a href="http://www.britannica.com/eb/article-9110735/automobile">Learn more about 
								"car"</a> and related topics at 
								<a href="http://www.britannica.com/eb/article-9110735/automobile"><strong>Britannica.com</strong></a>

							</div>
							<div class="result_ad">
								<a href="http://clk.atdmt.com/GBL/go/mrrmwwws0070000106gbl/direct/01/?qstr=q=car">Find more about
								"car"</a> instantly with 
								<a href="http://clk.atdmt.com/GBL/go/mrrmwwws0070000106gbl/direct/01/?qstr=q=car">Live Search</a>
							</div>			
							<div class="result_ad last">
								<a href="http://www.visualthesaurus.com?word=car&ad=mwcom.dict.txt1" 
								title="See a map of synonyms of car in the Visual Thesaurus.">
								See a map of "car"</a> in the 
								<a href="http://www.visualthesaurus.com?word=car&ad=mwcom.dict.txt1" title="A dictionary and thesaurus for people who think visually.">Visual Thesaurus</a>

							</div>
							<div id="google_creative_4"></div>
							<div><a href="javascript:pronWin()">Pronunciation Symbols</a></div>
						</div>
					</div>
					<div class="content_footer"></div>
				</td>
			</tr>

			<tr>
				<td colspan="2">						
					<div class="footer">
						<div id="google_creative_3">
							<script type="text/javascript">
								<!-- 
									placeCreative("google_creative_3", "BANNER", "bb", "car");
								// -->
							</script>
						</div>
						<ul>
							<li><a href="/store/books_and_cds.htm">Products</a></li>

							<li><a href="/cgi-bin/unabridged_sub.pl?refr=P_mwol_nav_prem">Premium Services</a></li>
							<li><a href="/info/index.htm#">Company Info</a></li>
							<li><a href="/info/contact.htm">Contact Us</a></li>
							<li><a href="/info/advertising.htm">Advertising Info</a></li>
							<li class="last"><a href="/info/privacy.htm">Privacy Policy</a></li>
						</ul>

						<a href="/info/copyright.htm">© 2006-2007 Merriam-Webster, Incorporated</a>
					</div>
				</td>
			</tr>
		</table>
	</div>
	<!-- Load and display the first Google creative (3 Wide Unit) -->
	<script type="text/javascript">
	<!--
		var google_ads			= new Array();
		var google_ad;
		google_ad				= new Object();
		var google_info			= new Object();
		//google_ad.n				= 1;
		google_ad_client		= 'ca-merriam-webster-site_js';		
		google_safe				= 'high';
		google_feedback			= "on";
		//google_kw				= 'car';
		//google_kw_type			= 'broad';
		google_image_size		= '300x250';
		google_max_num_ads		= '1';
		google_ad_unit			= 'rect';
		google_ad_output		= 'js';
		google_ad_type			= "flash,image";
		//google_ad.bidtype		= "CPM";
		//google_ad.url			= "http://pagead2.googlesyndication.com/pagead/";
		//google_ad.visible_url	= "www.google.com";
		//google_ad.image_url		= "http://pagead2.googlesyndication.com/pagead/";
		google_ads[0]			= google_ad;   
		google_ad_id			= "google_creative_1";
	// -->
	</script>

	<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
	<!-- Load and display the first Google creative (3 Wide Unit) -->
	<script type="text/javascript">
	<!--	
		google_afs_query	= "car";
		google_afs_ad		= 'w3';							// specify the number of ads you are requesting
		google_afs_client	= 'merriam-webster';			// substitute your client ID
		google_afs_channel	= 'dictionary';					// enter your comma-separated channel IDs
		google_afs_ie		= 'utf8';						// select input encoding scheme
		google_afs_oe		= 'utf8';						// select output encoding scheme
		google_afs_adsafe	= 'high';						// specify level for filtering non-family-safe ads
		google_afs_adtest	= 'off';						// ** set parameter to off before launch to production
		google_afs_hl		= 'en';							// enter your interface language if not English
		google_ad_id		= "google_creative_4";
	// -->
	</script>
	<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_ads.js"></script>
	<!-- Google Analytics -->
	<script  type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>
	<script type="text/javascript">
		<!-- 
			_uacct = "UA-296234-1"; 
			urchinTracker();
		// -->
	</script>

	<!-- Tribal fusion popunders: May 29 2007 -->
	<script type="text/javascript">
	   e9 = new Object();
	   e9.noAd = 1;
	   e9.popOnly = 1;
	</script>
	<script type="text/javascript" src="http://tags.expo9.exponential.com/tags/MerriamWebster/ROS/tags.js"></script>
	<!-- Accipiter popunder: 04/25/2007 -->	
	<script type="text/javascript">
	<!--

	   if (!pageNum) var pageNum = Math.round(Math.random() * 1000000);
	   var rndNum = Math.round(Math.random() * 10000000000);
	   document.writeln('<scr' + 'ipt src="http://eb.adbureau.net/jserver/acc_random=' + rndNum + '/pageid=' + pageNum + '/site=MW_POPS/area=DICT/aamsz=1x1"></scr' + 'ipt>');

	// -->
	</script>
</body>
</html>

 

i want to select this part:

Main Entry:	<b>car</b> <a href="javascript:popWin('/cgi-bin/audio.pl?car00001.wav=car')"><img src="/images/audio.gif" border=0 height=11 width=16></a><br>

Pronunciation:	<tt>'kär, <i>dial also</i> 'kor, 'kyär</tt><br>
Function:	<i>noun</i><br>
Etymology:	Middle English <i>carre,</i> from Anglo-French, from Latin <i>carra,</i> plural of <i>carrum,</i> alteration of <i>carrus,</i> of Celtic origin; akin to Old Irish & Middle Welsh <i>carr</i> vehicle; akin to Latin <i>currere</i> to run<br>

<b>1</b> <b>:</b> a vehicle moving on wheels: as <b>a</b> <i>archaic</i> <b>: <a href="/dictionary/carriage"><font size="-1">CARRIAGE</font></a>, <a href="/dictionary/chariot"><font size="-1">CHARIOT</font></a></b> <b>b</b> <b>:</b> a vehicle designed to move on rails (as of a railroad) <b>c</b> <b>: <a href="/dictionary/automobile"><font size="-1">AUTOMOBILE</font></a></b><br><b>2</b> <b>:</b> the passenger compartment of an elevator<br><b>3</b> <b>:</b> the part of an airship or balloon that carries the passengers and cargo
							</div>

 

i want to select everything from the word Main above till </div>. how to do that ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.