Home » U++ Library support » U++ Library : Other (not classified elsewhere) » RegEx Help
Re: RegEx Help [message #47145 is a reply to message #47142] |
Wed, 21 December 2016 08:40 |
|
deep
Messages: 263 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi,
I missed the later part of code. It is there in my code sample.
It is working. "GlobalMatch" should run in while loop.
RegExp r0("((\\w+)\\s(\\w+)\\s(\\w+))");
while(r0.GlobalMatch("one two three one1 two1 three1 one2 two2 three2"))
{
DUMP(r0.GetCount());
for(int i = 0; i < r0.GetCount(); i++)
s << r0[i] << '\n';
s << "---\n";
}
DUMP(s)
And output
one two three
one
two
three
---
one1 two1 three1
one1
two1
three1
---
one2 two2 three2
one2
two2
three2
---
Warm Regards
Deepak
[Updated on: Wed, 21 December 2016 08:45] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 19 10:21:13 CEST 2024
Total time taken to generate the page: 0.04375 seconds
|