0

一重引用符と二重引用符の正規表現が何であるかを知りたいだけです。具体的には、次のようなものです。

openquote(で始まる) + word + closequote(で終わる)

(singlequote)word(/singlequote) sample-> 'asdasdasdass'

(doublequote)word(/doublequote) sample-> "asdasdasdass"

c#winforms /thanks で。

- - 更新しました:

この行内の正規表現を置き換えます:

string hoveredWord = r.GetFragment("[a-zA-Z]").Text;

ありがとう!

4

2 に答える 2

0

正規表現パターン:

Former example : ^\'\w+\'
Later example : ^\"\w+\"

^ : match the beginning of the string
\' or \" : match the single quote or double quote
\w+ : match the alpha-numeric characters and underscore
于 2013-05-29T04:02:30.350 に答える