<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>2021/3/10：この記事は別のブログで投稿した記事を移動したものです。 PowerShell 7で文字列配列の各要素を小文字化、置換するサンプルコードです。 test.ps1 #文字列を改行`r`nで分割して文字列配列を作成 $modelNames = &quot;abc`r`nde f`r`n g hi&quot; -split &quot;`r`n&quot; $modelNames = $modelNames | ForEach-Object {$_.ToLower() -replace &quot; &quot;,&quot;_&quot;} $modelNames パイプ演算子→パイプラインの概要 - Microsoft Docs replace演算子→Re…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F04%2F19%2F000000&quot; title=&quot;PowerShell 7 文字列配列の各要素を小文字化＆置換 - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-19 00:00:00</published>
  <title>PowerShell 7 文字列配列の各要素を小文字化＆置換</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2020/04/19/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
