on this list i read about (?s) allowing . to catch \r's. but using it doesn't give the result i'm after. how to match each table row, one block at a time, in the following?:

<tr>
        <td>alsdkfj</td>
        <td>sadlkjf</td>
</tr>
<tr>
        <td>askjdf</td>
</tr>
<tr>
        <td>laksjffd</td>
        <td>lskjdf</td>
        <td>lkasjdf</td>
</tr>
...

so i'd like to find one whole tr (from <tr> to the next </tr>) each time. i tried this:

<tr>((?s).*)</tr>

and that got the whole block (all) of table rows in one go, so tried:

<tr>((?s).*(?!\r<tr>))</tr>

no difference.

is there some way to get it to stop at the first </tr> it comes to rather than the last? that would be nice.

i've worked out a way of doing it step by step by simple finding and replacing so that each whole table row is on one line, but was wondering if there was a regex way?

thanks, ben.


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to