
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
string wrkHtml = CharArrayToString(cArr,0,WHOLE_ARRAY,CP_UTF8); Print(fHTML+" Html-Size:"+(string)FileSize(fHdl)+" Array-Size: "+(string)ArraySize(cArr)+", read:"+(string)read+", String-Size: "+(string)StringLen(wrkHtml) );
In MQL5 you can use FileLoad() function:
Also try my String Manipulation Functions Library which will be helpful for parsing the text.
Edit:
If you intend to use regular expressions to parse the text, take a look at this: Regular Expressions Tester for MQL4
...
Edit:
If you intend to use regular expressions to parse the text, take a look at this: Regular Expressions Tester for MQL4
Your code is working with the MetaQuotes regular expression library right ? Which is some king of "clone" of C# library I think.
Did you already check how efficiently it's implemented ? I am wondering if it's usable as is or if it could be worth to build a custom library ?
Your code is working with the MetaQuotes regular expression library right ? Which is some king of "clone" of C# library I think.
Did you already check how efficiently it's implemented ? I am wondering if it's usable as is or if it could be worth to build a custom library ?
add 1) No as the 413 files are already manually downloaded (web crawling is not allowed!) - maybe later with different websites.
add 2) I don't think so as I created a csv file to load and handle in Excel (LO Calc) and strings are easier to handle by the MQ functions like searching, substringing, replaceing, adding ...
In MQL5 you can use FileLoad() function:
Also try my String Manipulation Functions Library which will be helpful for parsing the text.
Edit:
If you intend to use regular expressions to parse the text, take a look at this: Regular Expressions Tester for MQL4
Thanks! FileLoad() is really easier and you don't have to carefully manage the file handles. :)
I don't need RegEx. With "while ( "StringFind(wrkHtml, "tabulator-field=",..)" I jump from field to field until I reach the last field "Region". Then add the table row and start with the next row. It's quiet easy.
But it's good to know RefEx exists for MQ!
Thanks!
add 1) No as the 413 files are already manually downloaded (web crawling is not allowed!) - maybe later with different websites.
Just FYI doing it manually is ALSO web crawling.
Just FYI doing it manually is ALSO web crawling.
No, no according to; https://en.wikipedia.org/wiki/Web_crawler:
No, no according to; https://en.wikipedia.org/wiki/Web_crawler:
I don't consider my manual mouse clicks to be a bot.??
I didn't download any MQ webpage.
??
I didn't download any MQ webpage.