Частый гость
Покинул форум
Сообщений всего: 131
Дата рег-ции: Сент. 2013
Помог: 0 раз(а)
|
Есть сохраняемый html (далее он сохраняется в файл)
CODE ( html):
скопировать код в буфер обмена
<tr><th> <span> Производитель </span> </th><td>Samsung </td></tr><tr> <th> <span> Тип <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_5221', -68, 13);" onmouseout="toolTipCount('filter_description_5221', 'continue');" class="hand" /> </span> </th> <td><span>Смартфон</span> </td> </tr><tr> <th> <span> Тип SIM-карты <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_16498', -68, 13);" onmouseout="toolTipCount('filter_description_16498', 'continue');" class="hand" /> </span> </th> <td><span>Micro-SIM</span> </td> </tr><tr> <th class="title" colspan="2">Общие характеристики</th> </tr><tr> <th> <span> Стандарт </span> </th> <td><span>GSM 850/900/1800/1900, WCDMA 850/900/1900/2100</span> </td> </tr><tr> <th> <span> Высокоскоростная передача данных </span> </th> <td><span>GPRS, EDGE, HSDPA (до 42,2 Мб/с), HSUPA (до 5,76 Мб/с)</span> </td> </tr><tr> <th> <span> Количество SIM-карт <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17534', -68, 13);" onmouseout="toolTipCount('filter_description_17534', 'continue');" class="hand" /> </span> </th> <td><span>2</span> </td> </tr><tr> <th> <span> Операционная система <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_3770', -68, 13);" onmouseout="toolTipCount('filter_description_3770', 'continue');" class="hand" /> </span> </th> <td><span>Android 4.4.2 (KitKat)</span> </td> </tr><tr> <th> <span> Оперативная память, ГБ <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17471', -68, 13);" onmouseout="toolTipCount('filter_description_17471', 'continue');" class="hand" /> </span> </th> <td><span>1,5</span> </td> </tr><tr> <th> <span> Встроенная память, ГБ <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17473', -68, 13);" onmouseout="toolTipCount('filter_description_17473', 'continue');" class="hand" /> </span> </th> <td><span>16</span> </td> </tr><tr> <th> <span> Слот расширения </span> </th> <td><span>microSD/SDHC/SDXC (до 64 ГБ)</span> </td> </tr><tr> <th> <span> Габариты, мм </span> </th> <td><span>131,1x64,8x9,1</span> </td> </tr><tr> <th> <span> Масса, г </span> </th> <td><span>120</span> </td> </tr><tr> <th> <span> Защита от пыли и влаги </span> </th> <td><span>IP67</span> </td> </tr><tr> <th> <span> Аккумуляторная батарея </span> </th> <td><span>2100 мАч</span> </td> </tr><tr> <th> <span> Время работы (данные производителя) </span> </th> <td><span>нет данных</span> </td> </tr><tr> <th class="title" colspan="2">Экран</th> </tr><tr> <th> <span> Диагональ, дюймы </span> </th> <td><span>4,5</span> </td> </tr><tr> <th> <span> Разрешение </span> </th> <td><span>1280х720</span> </td> </tr><tr> <th> <span> Тип матрицы </span> </th> <td><span>Super AMOLED</span> </td> </tr><tr> <th> <span> PPI <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17462', -68, 13);" onmouseout="toolTipCount('filter_description_17462', 'continue');" class="hand" /> </span> </th> <td><span>326</span> </td> </tr><tr> <th> <span> Датчик регулировки яркости </span> </th> <td><span>есть</span> </td> </tr><tr> <th> <span> Сенсорный экран (тип) </span> </th> <td><span>сенсорный (емкостной)</span> </td> </tr><tr> <th> <span> Другое </span> </th> <td><span>16 млн. цветов, защитное стекло Gorilla Glass 3</span> </td> </tr><tr> <th class="title" colspan="2">Характеристики процессора</th> </tr><tr> <th> <span> Процессор <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17467', -68, 13);" onmouseout="toolTipCount('filter_description_17467', 'continue');" class="hand" /> </span> </th> <td><span>Qualcomm Snapdragon 400 + GPU Adreno 305</span> </td> </tr><tr> <th> <span> Тип ядра <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17468', -68, 13);" onmouseout="toolTipCount('filter_description_17468', 'continue');" class="hand" /> </span> </th> <td><span>Cortex-A7</span> </td> </tr><tr> <th> <span> Количество ядер <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17469', -68, 13);" onmouseout="toolTipCount('filter_description_17469', 'continue');" class="hand" /> </span> </th> <td><span>4</span> </td> </tr><tr> <th> <span> Частота, ГГц <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17470', -68, 13);" onmouseout="toolTipCount('filter_description_17470', 'continue');" class="hand" /> </span> </th> <td><span>1,4</span> </td> </tr><tr> <th class="title" colspan="2">Камера</th> </tr><tr> <th> <span> Основная камера, МП </span> </th> <td><span>8</span> </td> </tr><tr> <th> <span> Автофокус </span> </th> <td><span>есть</span> </td> </tr><tr> <th> <span> Видеосъемка </span> </th> <td><span>1920х1080 точек, 30 к/с</span> </td> </tr><tr> <th> <span> Вспышка </span> </th> <td><span>светодиодная</span> </td> </tr><tr> <th> <span> Фронтальная камера, МП </span> </th> <td><span>2,1</span> </td> </tr><tr> <th> <span> Другое </span> </th> <td><span>цифровой зум, видеосъемка фронтальной камерой 1080р 30 к/с</span> </td> </tr><tr> <th class="title" colspan="2">Коммуникации</th> </tr><tr> <th> <span> Wi-Fi </span> </th> <td><span>802.11 a/b/g/n, Wi-Fi hotspot, Wi-Fi Direct</span> </td> </tr><tr> <th> <span> Bluetooth </span> </th> <td><span>4.0 (A2DP, EDR, LE)</span> </td> </tr><tr> <th> <span> GPS </span> </th> <td><span>+ (GLONASS)</span> </td> </tr><tr> <th> <span> IrDA <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17496', -68, 13);" onmouseout="toolTipCount('filter_description_17496', 'continue');" class="hand" /> </span> </th> <td><span>есть</span> </td> </tr><tr> <th> <span> NFC <img src="/img/s/v3/ico_info_th.png" alt="" width="10" height="10" onmouseover="toolTipSet(this, 'filter_description_17497', -68, 13);" onmouseout="toolTipCount('filter_description_17497', 'continue');" class="hand" /> </span> </th> <td><span>нет</span> </td> </tr><tr> <th> <span> Интерфейсный разъем </span> </th> <td><span>USB 2.0 (micro-USB)</span> </td> </tr><tr> <th class="title" colspan="2">Дополнительно</th> </tr><tr> <th> <span> Аудиоразъем </span> </th> <td><span>3,5 мм</span> </td> </tr><tr> <th> <span> MP3 плеер </span> </th> <td><span>есть</span> </td> </tr><tr> <th> <span> FM-радио </span> </th> <td><span>нет</span> </td> </tr><tr> <th> <span> Тип корпуса </span> </th> <td><span>моноблок</span> </td> </tr><tr> <th> <span> Тип клавиатуры </span> </th> <td><span>экранный ввод</span> </td> </tr><tr> <th> <span> Еще </span> </th> <td><span>акселерометр, цифровой компас, гироскоп, датчики приближения и освещения, приемник А-GPS, виброзвонок, сканер отпечатков пальцев, датчик сердечного ритма</span> </td> </tr>
И в нем есть такие штуки как:
onmouseover="toolTipSet(this, ' ......
onmouseout="toolTipCo .......
теги img
Надо почистить вот все это, оставить только теги таблицы, ну и span'ы. Подозреваю, что это можно сделать регулярками, вот только в регулярках не силен
Не подскажите как это реализовать?
|