Sign in to follow this  
Followers 0
faustf

_ReplaceStringInFile carriage return help

2 posts in this topic

hi guys

i have a  html  , and   i must modify  some text  inside them 

<br>
                              <span
 style="font-size: 16px; font-family: Arial;"><span
 style="color: rgb(255, 51, 51);"> Tabella di formato: Si
prega di consentire 1-2 cm differisce dovuto la misura manuale,
ringraziamenti (tutta la misura in cm e nota prego 1cm = 0.39 pollici</span>)
                              <br>
                              </span> </p>

i want  remove      Tabella di formato: Si
prega di consentire 1-2 cm differisce dovuto la misura manuale,
ringraziamenti (tutta la misura in cm e nota prego 1cm = 0.39 pollici

with other   text  i tryed 

#include <File.au3>
#include <MsgBoxConstants.au3>

Local $sFind = "Tabella di formato: SI prega"

Local $sReplace =" Tabella di formato: SI"

Local $sFileName = "E:\_GESTIONALE_NEW\WEB-SITE\eBay\PUBLICAZIONI\FORMATI_STANDARD\format_bikini_1_test.html"


Local $iRetval = _ReplaceStringInFile($sFileName, $sFind, $sReplace)
If $iRetval = -1 Then
    MsgBox($MB_SYSTEMMODAL, "ERROR", "The pattern could not be replaced in file: " & $sFileName & " Error: " & @error)
    Exit
Else
    MsgBox($MB_SYSTEMMODAL, "INFO", "Found " & $iRetval & " occurances of the pattern: " & $sFind & " in the file: " & $sFileName)
EndIf

but   exist some option or  udf  for  replace  string  in 3 line ?? 

thankz at all 

 

Share this post


Link to post
Share on other sites



i answer me  i   use a  @LF

Local $sFind = "spedizione sono Lunedi a Venerdì, esclusi Sabato, Domenica e la festa " & @LF & _
"dichiarata dal vettore. Il vostro ordine sarà nave fuori entro i " & @LF & _
"Business Day 1"

thankz at all :)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0