[Israel.pm] pattern match!

Peter Gordon peter at pg-consultants.com
Sun May 7 14:07:41 EEST 2006


How about

s|<td>|\n<td>|g 
That is, put a new line in front of each <td>

and

to extract

($extract) =~ m|<99999(.*?)</a>|s


Peter

On Sun, 2006-05-07 at 13:28 +0300, Ernst, Yehuda wrote:
> Hello
> 
> 
> I have a sting that is build of
> 
> <td>##:##</td> TEXT................................................<td>##:##</td> TEXT................................................<td>##:##</td> TEXT................................................<td>##:##</td> TEXT................................................<td>##:##</td> TEXT................................................
> 
> 
> The ## are digits  can be 0 to 9
> 
> 
> 
> 1) how do i order it like this?
> 
> <td>##:##</td> TEXT................................................
> <td>##:##</td> TEXT................................................
> <td>##:##</td> TEXT................................................
> <td>##:##</td> TEXT................................................
> <td>##:##</td> TEXT................................................
> 
> inside the TEXT  i have  another TEXT that i want 
> 
> it starts with 99999and ends with </a>
> 
> How can i extract it?
> 
> 
> Thanks
>  
> 
> Yehuda Ernst                        יהודה ארנסט
> NDS Technologies Israel Ltd. mailto:yernst at nds.com>
> Jerusalem          Tel:  +972 (2) 589-4427
> PO Box 23012    Fax: +972 (2) 589-4825
> Israel.    91235    Cell  +972 54 5664427
> 
> ***********************************************************************************
> This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message.
> ***********************************************************************************
> 
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
> 
> 





More information about the Perl mailing list