Hiya
I think you'd have to do it with a combination of StringSplit, StingFind, StringSubstr etc. There's probably a bunch of string scripts in the codebase, have you had a search through there?
Filter:
Yes sir I have read this but I can't get a simple way to do this. I am trying to create a function that does that but could not succeed.
Hiya
I think you'd have to do it with a combination of StringSplit, StingFind, StringSubstr etc. There's probably a bunch of string scripts in the codebase, have you had a search through there?
habboubih:
Yes sir I have read this but I can't get a simple way to do this. I am trying to create a function that does that but could not succeed.
Try to look at this article - it contains an HTML parser class.
Yes sir I have read this but I can't get a simple way to do this. I am trying to create a function that does that but could not succeed.
You can import any regular expression library written in C into your EA. There are many available.
http://slre.sourceforge.net/
SLRE - Super Light Regular Expression library
- slre.sourceforge.net
SLRE (Super Light Regular Expression) library is a subset of Perl RE implemented in ANSI C.
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
Hello,
I am looking for a function that acts like the preg_match in PHP that performs a regular expression match.
For example, if I have a string in MQL4 that contains the following HTML code
I want the function to search the string for the values between the tags <td id="open_0"> and </td>, <td id="high_0"> and </td>, <td id="low_0"> and </td> ... etc... and saves them in a new string or int.