Difference between Java & .Net Framework Regular Expressions Pattern
I am trying to convert My .Net Framework but patterns are not valid
Can any one point out the major differences in regex patterns
e.g. How would we name the grouping constructs in java, etc.
There are many differences that are summarised here.
The most important ones are:
@"\s"becomes"\\s")(?(?=regex)then|else))Most other differences are minor. One difference that is not mentioned above is Java’s lack of support for balanced (recursive) regexes which I hope you don’t have to use, ever.
If you need to convert lots of complicated regexes, consider investing in RegexBuddy which will do that for you.