473,414 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Split Href Tags

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <meta name="collection" content="exclude">
  6.  
  7. <!-- Generated by javadoc (build 1.4.2-rc) on Fri Jun 13 00:13:32 PDT 2003 -->
  8. <TITLE>
  9. All Classes (Java 2 Platform SE v1.4.2)
  10. </TITLE>
  11.  
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
  14.  
  15.  
  16. </HEAD>
  17.  
  18. <BODY BGCOLOR="white">
  19. <FONT size="+1" CLASS="FrameHeadingFont">
  20. <B>All Classes</B></FONT>
  21. <BR>
  22.  
  23. <TABLE BORDER="0" WIDTH="100%" SUMMARY="">
  24. <TR>
  25. <TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="org/omg/CORBA/ARG_IN.html" title="interface in org.omg.CORBA" target="classFrame"><I>ARG_IN</I></A>
  26. <BR>
  27. <A HREF="org/omg/CORBA/ARG_INOUT.html" title="interface in org.omg.CORBA" target="classFrame"><I>ARG_INOUT</I></A>
  28. <BR>
  29. <A HREF="org/omg/CORBA/ARG_OUT.html" title="interface in org.omg.CORBA" target="classFrame"><I>ARG_OUT</I></A>
  30. <BR>
  31.  


From the above HTML code, I would want to extract "org/omg/CORBA/ARG_OUT.html" (All the Href Links).

How do I do that using Split and Simple RegEx?
Mar 23 '12 #1
1 1562
numberwhun
3,509 Expert Mod 2GB
When you want to do something in Perl, its a good idea to look for a module that has the functionality you are looking for. CPAN is the place to look for Perl modules.

For this, you may want to look at the HTML::simpleParse module.

Regards,

Jeff
Mar 26 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: MotherBored | last post by:
Hello gurus! I am not a javascript person, so I hope there is a simple answer / solution to this problem I'm having. I'm xposting this to the HTML group, if perhaps this is an HTML issue. I...
1
by: Michael | last post by:
Can anyone tell me why an href will make a frame flash white when every attribute about the BG color is set to be black #000000? Click on any link in this site: http://www.squaresquared.com/CDHM...
6
by: bforward | last post by:
I want to give the user two display choices with radio buttons at the top of the page. Then I want to provide a series of HREF type links for them to click on for the choice made. Is it possible to...
12
by: Stefan Weiss | last post by:
Hi. (this is somewhat similar to yesterday's thread about empty links) I noticed that Tidy issues warnings whenever it encounters empty tags, and strips those tags if cleanup was requested....
6
by: snacktime | last post by:
I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag. The only way I have found to do this is to...
13
by: tperri | last post by:
I have an HTML table with several fields like this: <A href="Savings.aspx?category=Food"><asp:imagebutton id="imgFood" ImageUrl="images\buttons\btn-food-i.gif"...
1
by: vbfoobar | last post by:
Hello, I have HTML input to which I apply some changes. Feature 1: ======= I want to tranform all the text, but if the text is inside an "a href" tag, I want to leave the text as it is. ...
2
by: Nino | last post by:
Hello, I have done some searching through groups and haven't found an answer that suits my needs, so I hope to ask again. Is there a way to disable an anchor tag within HTML? Here's why: I...
4
by: shehabic | last post by:
Hello I'm Using The Following Code To Do 2 things 1-Convert Tags To Lower Case 2-Add Quotes To Attributes That Doesn't Have Quote but i'm having problems with some attributes. The Functions...
3
by: jeddiki | last post by:
Hi, I am using this script which is nearly working correctly, but not quite! When a user selects some text from the web-page and copies it, the script is supposed to pick up the current...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.