Are Java and C# regular expressions compatible?

前端 未结 6 2072
醉酒成梦
醉酒成梦 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:03

    Check out: http://www.regular-expressions.info/refflavors.html Plenty of regex info on that site, and there's a nice chart that details the differences between java & .net.

提交回复
热议问题