Are Java and C# regular expressions compatible?

前端 未结 6 2074
醉酒成梦
醉酒成梦 2020-11-29 21:55

Both languages claim to use Perl style regular expressions. If I have one language test a regular expression for validity, will it work in the other? Where do the regular ex

6条回答
  •  日久生厌
    2020-11-29 22:00

    c# regex has its own convention for named groups (?). I don't know of any other differences.

提交回复
热议问题