【Powershell】Powershellでの左からxx文字目、右からxx文字目の文字列を取得する Powershell Windows Posted by: 2016年11月24日 no comments yet <スポンサーリンク> たとえば$aにabcdeの文字列を入れた場合。 左から1文字 $a.Substring(0, 1) 1 $a.Substring(0, 1) 右から1文字 $a.Substring($a.Length - 1, 1) 1 $a.Substring($a.Length - 1, 1) 書式は、$a.Substring(切り出しを始める値、切り出しを終える値) Share this:クリックして Twitter で共有 (新しいウィンドウで開きます)Facebook で共有するにはクリックしてください (新しいウィンドウで開きます) 関連 <スポンサーリンク> older newer コメントを残す コメントをキャンセルAllowed tags: you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>Please note: all comments go through moderation. Name (required) Email (required) Website キャプチャコード * 新しいコメントをメールで通知 新しい投稿をメールで受け取る Δemail confirm* post date* 日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)