开发者

Will both of these Regex terms find the same matches using C# isMatch() method?

Will a regex created开发者_如何学C with the following terms match the same results?

"canon| eos" "1d"

and

canon|eos 1d

Now I do not want to match the quotation marks (") in the string. Will the fact they are in there make a difference.

Will the first term match "canon but not canon?

Am I right in what I am saying?


These are two completely different expressions. What makes you think that they are the same?

The first expression will match either "canon or ␣eos"␣"1d".

The second expression will match canon or eos␣1d.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜