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.
この正規表現は、作業中の C# コードで見つかりました。誰かが私にそれを説明してもらえますか:
@"(?s)\{\{\s*" + templateTitle + @"(.*?)}}\r?\n?"
テストしたところ、次のようなテキストが返されます
{{ templateTitleValue anything}}
私が理解していないのは、2 つの '}}' のように \ でエスケープされていない 2 つの '}}' です。そして、冒頭の「(?s)」とは。
ありがとう