Posts: 1,058
Threads: 367
Joined: Oct 2007
I wonder whether there exists a function to omit control characters, when getting text from QM Output, for example
Quote:<open "Notepad_Toolbars /1722">
I am aware of topic
Winmerge in QM_Editor
Thanks in advance.
Posts: 1,058
Threads: 367
Joined: Oct 2007
This is my approach. Any advice is mostly welcome.
Function
tempf14
str sout="$temp$\qm_out.txt"
str s=GetQMOutput
;mes s
str sl so sou
int j k
foreach sl s
,j=find(sl "<")
,if j<0
,,so=sl
,,sou.formata("%s[]" so)
,,continue
,k=find(sl ">" j)
,if k<0
,,so=sl
,,sou.formata("%s[]" so)
,,continue
,so=sl
,so.replace("" j k-j+1)
,sou.formata("%s[]" so)
,
sou.setfile(sout)
run sout
Posts: 12,078
Threads: 141
Joined: Dec 2002
Can use scintilla API to remove hidden text, but easier and faster with replacerx or like your code.
Posts: 1,058
Threads: 367
Joined: Oct 2007
Thanks again! This is my approach with replacerx :
Quote:sl.replacerx("[<].*?[>]" )