2017-03-29から1日間の記事一覧
-replace演算子を使用して正規表現を用いた文字列の置換をすればよい。以下、例。 PS > $fullpath = "C:\abc\efg\hij.klm.nop.qrs"PS > $fullpathC:\abc\efg\hij.klm.nop.qrsPS > $fullpath -replace "^.+\\", ""hij.klm.nop.qrsPS > $st = $fullpath -repla…
-replace演算子を使用して正規表現を用いた文字列の置換をすればよい。以下、例。 PS > $fullpath = "C:\abc\efg\hij.klm.nop.qrs"PS > $fullpathC:\abc\efg\hij.klm.nop.qrsPS > $fullpath -replace "^.+\\", ""hij.klm.nop.qrsPS > $st = $fullpath -repla…