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

Multiple Repeated Text Regex Question

Expand Messages
  • t_cosmas
    Hello, I often have text to process that has repeated pairs of   which is created by a perl program converting a plain text file into HTML. I might
    Message 1 of 1 , Jan 11, 2011
      Hello,

      I often have text to process that has repeated pairs of "  " which is created by a perl program converting a "plain" text file into HTML.

      I might have a line that looks like the following:

      <span style="margin-left:2.5em">1.  American robin              Turdus migratorius        [Male]      33</span>

      which I'd like to convert into

      <tr><td class="text_lf">1.</td><td>American robin</td><td>Turdus migratorius</td><td>[Male]</td><td>33</td></tr>

      Is there any way to S&R using regex the multiple pairs
      Find: (\ \ )+
      Replace: </td><td>

      Thanks.
      Tom C.
    Your message has been successfully submitted and would be delivered to recipients shortly.
    »
    «