You know the word boundary, why aren't you using it then ?
I totally agree with lippmaje it was not clear and it's still not. From what you described, you don't need "^" at all. I am even wondering if you need regex at all.
Help with what ?
@lippmaje:
Yes, I know the regex tester(s). The "Big" example is just an example. Forget it.
So, you guys claim that "^" and "$" are absolutely unnecessary in regular expressions? I doubt.
I need an example, how can I use them by mql regex. Because, for example this regex doesn't work: "^Anything$", at least I couldn't get it to work.
Yes, I know the regex tester(s). The "Big" example is just an example. Forget it.
So, you guys claim that "^" and "$" are absolutely unnecessary in regular expressions? I doubt.
Nobody said that. We said it's not necessary in your example to find "Big" in "Big smile! Big pleasure! BigBig ocean!" (but not BigBig).
I need an example, how can I use them by mql regex. Because, for example this regex doesn't work: "^Anything$", at least I couldn't get it to work.
What doesn't work is your understand of regex and how they works. You should learn about them, which is not the place on this forum.
This pattern "^Anything$" will find 'Anything' ONLY if it's at the start of the string expression AND at the end. So it will find it ONLY if your string expression is "Anything" exactly.
Alain Verleyen: Nobody said that. We said it's not
necessary in your example to find "Big" in "Big smile! Big pleasure! BigBig ocean!" (but not BigBig).
What doesn't work is your understand of regex and how they works. You should learn about them, which is not the place on this forum.
This pattern "^Anything$" will find 'Anything' ONLY if it's at the start of the string expression AND at the end. So it will find it ONLY if
your string expression is "Anything" exactly.
Exactly. But why "^Big$" did not work in my example?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You know the word boundary, why aren't you using it then ?
I totally agree with lippmaje it was not clear and it's still not. From what you described, you don't need "^" at all. I am even wondering if you need regex at all.
Help with what ?
@lippmaje:
Yes, I know the regex tester(s). The "Big" example is just an example. Forget it.
So, you guys claim that "^" and "$" are absolutely unnecessary in regular expressions? I doubt.
I need an example, how can I use them by mql regex. Because, for example this regex doesn't work: "^Anything$", at least I couldn't get it to work.
@lippmaje:
Yes, I know the regex tester(s). The "Big" example is just an example. Forget it.
So, you guys claim that "^" and "$" are absolutely unnecessary in regular expressions? I doubt.
I need an example, how can I use them by mql regex. Because, for example this regex doesn't work: "^Anything$", at least I couldn't get it to work.
What doesn't work is your understand of regex and how they works. You should learn about them, which is not the place on this forum.
This pattern "^Anything$" will find 'Anything' ONLY if it's at the start of the string expression AND at the end. So it will find it ONLY if your string expression is "Anything" exactly.
Nobody said that. We said it's not necessary in your example to find "Big" in "Big smile! Big pleasure! BigBig ocean!" (but not BigBig).
What doesn't work is your understand of regex and how they works. You should learn about them, which is not the place on this forum.
This pattern "^Anything$" will find 'Anything' ONLY if it's at the start of the string expression AND at the end. So it will find it ONLY if your string expression is "Anything" exactly.
Exactly. But why "^Big$" did not work in my example?