Hi,

Your Find patter is wrong.
Use the following Pattern:

s/([\t]\d{2}[:]\d{2}[\s])/\1/;

Regards,
Gopal.R

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Malcolm Mill
Sent: Wednesday, November 03, 2004 2:41 AM
To: [EMAIL PROTECTED]
Subject: regex help


Newbie here having trouble with regex.
   I'm trying to parse an html file saved as text to find all instances of
time.
   The parsed file is called myFindTime2.txt and contains text like....
   =============================================
   <tr>
       <td align="right" valign="top">
       <font size="2" color="#000000" class="listings">
       11:30 am<br />
       </font>
       </td>
   </tr>
   ==============================================
   The script is called myFindTime2.pl and contains the lines....
   ==============================================
   foreach (<>) {
           s/([\t][\d2][:][\d2][\s])/\1/;
           print $_;
   }
   ==============================================

- Ignored:
   The command I use is.....
   perl myFindTime2.pl myFindTime2.txt

   Any suggestions? Is what I'm trying to do here with
   s/search/replace_backreference/ valid?

- Done.



---------- Forwarded message ----------
From: Malcolm Mill <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Tue, 2 Nov 2004 21:00:27 +0000
Subject: Regex help
Hi,
Newbie here having trouble with regex.

I'm trying to parse an html file saved as text to find all instances of
time.

The parsed file is called myFindTime2.txt and contains text like....
=============================================
<tr>
       <td align="right" valign="top">
       <font size="2" color="#000000" class="listings">
       11:30 am<br />
       </font>
       </td>
</tr>

==============================================

The script is called myFindTime2.pl and contains the lines....
==============================================
foreach (<>) {
       s/([\t][\d2][:][\d2][\s])/\1/;
       print $_;
}
==============================================

The command I use is.....
perl myFindTime2.pl myFindTime2.txt

Any suggestions? Is what I'm trying to do here with
s/search/replace_backreference/ valid?
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to