Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] Digest Number 531

Expand Messages
  • Michael
    Hi Greg, I can t really figure aout how this is working. Could you explain it please. thanks, Michael Subject: Re: more problems with RegEx ... You may have
    Message 1 of 1 , Oct 3, 2001
      Hi Greg,

      I can't really figure aout how this is working. Could you explain it please.

      thanks,
      Michael




      Subject: Re: more problems with RegEx


      > $html =~ s{(<td.*?>
      > (<.*?>)*)
      > (.*?)
      > ((</.*?>)*
      > </td>)}
      > {$1
      > $field
      > $4\n}gisx;
      >
      > return $html;

      You may have better luck with a different sort of regexp match for tables:

      $_ = /<td.*[^>]/;

      ...this (assuming I wrote it correctly since I just woke up), should match
      a TD tag better, where the .* grabs anything that isn't ([^>]) a
      greater-than sign.

      Greg
    Your message has been successfully submitted and would be delivered to recipients shortly.