Hi,
The code behind matches is :
Regex regex = new Regex(regexp);
return regex.Match(input).Success;
I know that Java and C# rexgex acts differently ...
So what the options are ? :
- leave as is and documents (...) limitations
- re-implements in .NET the Java behavior ...
@
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I have an implementation in .NET of the java regex behavior (Pattern, matcher, ...).
The result is what you expect with that new implementation (94 classes ...).
I also have the unit test for that but some of them failed on hard case (8).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I mean
ILOG.J2CsMapping.Util.StringUtil.Matches(value,"\\d+") - returns true
Hi,
The code behind matches is :
Regex regex = new Regex(regexp);
return regex.Match(input).Success;
I know that Java and C# rexgex acts differently ...
So what the options are ? :
- leave as is and documents (...) limitations
- re-implements in .NET the Java behavior ...
@
Well, I have an implementation in .NET of the java regex behavior (Pattern, matcher, ...).
The result is what you expect with that new implementation (94 classes ...).
I also have the unit test for that but some of them failed on hard case (8).