SublimeText 2 / REGEX - delete everything between two tags, including line breaks?

I have a CSV document filled with thousands of table instances that I need to delete. I suppose I can use REGEX, but I cannot find an expression to remove it. I attached the sample below.

I thought that <table(.*)</table> would work, but this seems to ignore line breaks. Is there anyone who can help me remove them?

 <table cellpadding=""5"" align=""center"" class=""shippingcost"" style=""width: 525px;""> <tbody> <tr> <td colspan=""2"" style=""text-align: center;"">Shipping: </td> </tr> <tr class=""shippingcostrow""> <td> <div align=""right"">Domestic Canada International </td> <td width=""400""> <div align=""left"">Insured shipping is included to all US destinations. Canadian buyers pay $28 for EMS insured shipping. All International Buyers pay $35 for EMS insured shipping. </td> </tr> </tbody> </table> 
+6
source share
1 answer

Got it. SublimeText has special tags for REGEX, apparently.

 (?s)<table(.*?)</table> 
+11
source

Source: https://habr.com/ru/post/945691/


All Articles