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#を使用する場合は、使用を検討する必要があります
Regex.Escape()
正規表現の一部として外部入力を使用する前