
dws
Deleted
Oct 24, 2000, 4:58 PM
Post #2 of 4
(4850 views)
|
If you approach this with the idea that it can be done with a single regular expression, it's gonna hurt (even if it can be done). Try breaking the problem down. Use regular expressions to cut pieces off of the front of the source string (appending them to an output string) until you reach the first <tr>. Then cut/append 7 <tr>.*?</tr> pairs, then drop the remaining pairs, then append whatever is left of the source string to the output string.
|