Hi,

I am trying out to get a an attribute value from the given text. Kindly help me 
out in this regard.

Input text:

The Bill for this Act of the Scottish Parliament was passed by the Parliament 
on 15th December 2005 and received Royal Assent on 20th January 2006

Output needed:

<assent date="20060120">The Bill for this Act of the Scottish Parliament 
waspassed by the Parliament on 15th December 2005 and received Royal Assent on 
20th January 2006</assent>

Note: The date attribute should be recovered from the highlighted text.

Regards,
Martin.
  ----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: beginners@perl.org 
  Sent: Monday, March 13, 2006 11:24 AM
  Subject: beginners Digest 13 Mar 2006 05:54:58 -0000 Issue 2791


Confidentiality Notice: This transmittal is a confidential communication.  If 
you are not the intended recipient, you are hereby notified that you have 
received this transmittal in error and that any review, dissemination, 
distribution or copying of this transmittal is strictly prohibited. If you have 
received this communication in error, please notify this office immediately by 
reply and immediately delete this message and all of its attachments, if any.

Reply via email to