Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
F# で、" で始まり & 終わる文字列を表し、二重引用符や改行を含まない Unicode 文字の任意のシーケンスを使用できる正規表現を記述したいと考えています。
例えば:
"家に帰りたい" 「私の名前はクッチャです」 ""
"家に帰りたい"
「私の名前はクッチャです」
""
どうすればいいですか?
次のような正規表現を使用する必要があります。
let regex = "^\".*\"$"
これをタイ
"[^"]*?"
うまくいくかもしれませんが、この種の文字列を解析して検証するには、stack.
stack