Hi
I have a vb app that use regex with a textbox that user put his pattern.
And another textbox for app output.
The app using matches , split , replace methods.
The output of matches method
Always work ok with the regexoptions.
But split and replace methods
Sorks ok with regexoptions only
When they are running after
The matches method.
If they are running first without
Previously running matches method
The results are always according
To the last regexoptions of the previous matches method.
Can someone help.
Thanks in advance.
[edit]
Added as a solution:
Quote:
That's the problem the code
Run ok. The app not throw any errors.
The results are ok but without
Related to the current regexoptions
Only the results of the matches
Method are related to the regexoptions.
Thank you.
[/edit]
What I have tried:
Re include regexoptions
re.matche (source)
Re.replace(source, replacement)
Re.split(source)