Translate Perl regular expressions to .NET

前端 未结 3 538
陌清茗
陌清茗 2020-11-29 02:47

I have some useful regular expressions in Perl. Is there a simple way to translate them to .NET\'s dialect of regular expressions?

If not, is there a concise referen

3条回答
  •  情书的邮戳
    2020-11-29 03:48

    It really depends on the complexity of the regular expression - many ones will work the same out of the box.

    Take a look at this .NET regex cheat sheet to see if an operator does what you expect it to do.

    I don't know of any tool that automatically translates between RegEx dialects.

提交回复
热议问题