2025年6月4日水曜日

文字列の分割

構文

-split <String>
-split (<String[]>)
<String> -split <Delimiter>[,<Max-substrings>[,"<Options>"]]
<String> -split {<ScriptBlock>} [,<Max-substrings>]
Max-substrings

PowerShell 7以降:マイナス指定で末尾から数えて処理される。

 

https://learn.microsoft.com/ja-jp/powershell/module/microsoft.powershell.core/about/about_split?view=powershell-7.5

0 件のコメント:

コメントを投稿