<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>guitarrapc_tech</author_name>
  <author_url>https://blog.hatena.ne.jp/guitarrapc_tech/</author_url>
  <blog_title>tech.guitarrapc.cóm</blog_title>
  <blog_url>https://tech.guitarrapc.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>小ネタというか、初心者向けに。 以前、シェル芸でもやったのですが、改めて文字列の所定箇所に特定の文字を挿入してみます。 Insert()メソッド stringにはInsert()メソッドがあるので、これを利用するだけです。 Insert()の設定を見てみます。 挿入位置であるstartIndexと挿入文字列valueがありますね。 string Insert(int startIndex, string value) 文字に挿入 abcdeのcの後にあかさと挿入するならこうです。 PS&gt; &quot;abcde&quot;.Insert(3,&quot;あかさ&quot;) abcあかさde 数字をstringへキャストすれば、同様…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.guitarrapc.com%2Fentry%2F2013%2F07%2F12%2F230330&quot; title=&quot;PowerShellで文字列の所定箇所に文字を挿入する - tech.guitarrapc.cóm&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>2013-07-12 23:03:30</published>
  <title>PowerShellで文字列の所定箇所に文字を挿入する</title>
  <type>rich</type>
  <url>https://tech.guitarrapc.com/entry/2013/07/12/230330</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
