問題タブ [select-string]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
3 に答える
7251 参照

powershell - PowershellのSelect-Stringメソッドの「行」を構成するものは何ですか?

Powershell では、(キャリッジ リターン + 改行) を行末Select-Stringと見なすことを期待します。\r\n

ただし、以下に示すように、abc入力全体に一致します。

文字列を 2 つの部分に分割すると、Select-String期待どおりに動作します。

Select-String行が で終わる文字列を指定し\r\n、このコマンドレットが一致を含む文字列のみを返すようにするにはどうすればよいですか?