faustf 9 Posted December 7, 2016 hi guys how is possible to take only a text bye this html code? <p data-mce-style="margin-top: 5.0pt; margin-right: 1.5pt; margin-bottom: 5.0pt; margin-left: 37.55pt; mso-pagination: widow-orphan;" style="margin: 5pt 1.5pt 5pt 37.55pt; text-align: center;"><br> </p> <p style="text-align: center;"> <span style="font-size: 16px; font-family: Arial;"><strong>Caratteristiche:</strong></span><br> <br> <span style="font-size: 16px; font-family: Arial;"> Contenuto del pacco:</span><br> <br> <span style="font-size: 16px; font-family: Arial;">nr. 1 barattolo gel builder ricostruzione unghie </span><br> <br> <span style="font-size: 16px; font-family: Arial;"> peso del barattolo 56 gr 2oz</span><br> <br> <span style="font-size: 16px; font-family: Arial;"> nuovo da usare con lampada UV</span><br> <br> <span style="font-size: 16px; font-family: Arial;"><span style="color: rgb(255, 51, 51);"> </span><br> </span> </p> <p style="text-align: center;"><span style="font-size: 16px; font-family: Arial;"><br> </span> </p> <p style="text-align: center;"><span style="font-size: 16px; font-family: Arial;"><br> </span> </p> i tryed with this code but is not good is possible take in one time ? Local $aLTesto_body_Html=StringRegExp($result[2], '(.*?)</span><br>', $STR_REGEXPARRAYGLOBALMATCH) ; titolo thankz at all Share this post Link to post Share on other sites
SadBunny 129 Posted December 7, 2016 What do you mean by "only a text"? Can you specify the exact input that's going into the StringRegExp (the $result[2]) and the exact output you're trying to achieve? Roses are FF0000, violets are 0000FF... All my base are belong to you. Share this post Link to post Share on other sites
faustf 9 Posted December 7, 2016 only this in result nr. 1 barattolo gel builder ricostruzione unghie peso del barattolo 56 gr 2oz nuovo da usare con lampada UV Share this post Link to post Share on other sites
jguinch 393 Posted December 7, 2016 (edited) Local $aLTesto_body_Html=StringRegExp($result[2], '<span[^>]+>([^<]+)</span>', $STR_REGEXPARRAYGLOBALMATCH) Edited December 7, 2016 by jguinch 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Share this post Link to post Share on other sites
mikell 743 Posted December 7, 2016 (edited) Msgbox(0,"", StringRegExpReplace(FileRead("1.txt"), '<.*?>\R?|&[^;]+;', "") ) Edited December 7, 2016 by mikell 1 Share this post Link to post Share on other sites
faustf 9 Posted December 8, 2016 thankz so much work fine both Share this post Link to post Share on other sites
mikell 743 Posted December 8, 2016 Hmm my code should have been more specific to remove only the " " and not other possible html special chars Msgbox(0,"", StringRegExpReplace(FileRead("1.txt"), '<.*?>\R?| ', "") ) 1 Share this post Link to post Share on other sites
faustf 9 Posted December 9, 2016 perfect thankzzzz so mucchhhhh Share this post Link to post Share on other sites