<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>StrRightBack &#8211; カミュプリィの雑多なメモ</title>
	<atom:link href="https://www.commuply.co.jp/technic/memo/tag/strrightback/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.commuply.co.jp/technic/memo</link>
	<description></description>
	<lastBuildDate>Sun, 24 Aug 2025 04:55:37 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.commuply.co.jp/technic/memo/wp-content/uploads/site-icon-150x150.png</url>
	<title>StrRightBack &#8211; カミュプリィの雑多なメモ</title>
	<link>https://www.commuply.co.jp/technic/memo</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[言語比較]検索される文字値の検索値より右側</title>
		<link>https://www.commuply.co.jp/technic/memo/%e8%a8%80%e8%aa%9e%e6%af%94%e8%bc%83%e6%a4%9c%e7%b4%a2%e3%81%95%e3%82%8c%e3%82%8b%e6%96%87%e5%ad%97%e5%80%a4%e3%81%ae%e6%a4%9c%e7%b4%a2%e5%80%a4%e3%82%88%e3%82%8a%e5%8f%b3%e5%81%b4/</link>
		
		<dc:creator><![CDATA[ume]]></dc:creator>
		<pubDate>Sun, 24 Aug 2025 04:44:37 +0000</pubDate>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Lotus Script]]></category>
		<category><![CDATA[StrRight]]></category>
		<category><![CDATA[StrRightBack]]></category>
		<category><![CDATA[言語比較]]></category>
		<guid isPermaLink="false">https://www.commuply.co.jp/technic/memo/?p=1340</guid>

					<description><![CDATA[C# ○番目の検索値より右側を返すユーザー関数です Excel 最初の検索値より右側を返す式はこちらです 最後の検索値より右側を返す式はこちらです（LETでまとめていません）検索値を仮の検索値へ置換し、切り出した後に検索 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 id="c" class="wp-block-heading">C#</h2>



<p class="wp-block-paragraph">○番目の検索値より右側を返すユーザー関数です</p>



<pre class="wp-block-code"><code>/// &lt;summary>
/// ○番目の検索値より右側
/// &lt;/summary>
/// &lt;returns>検索値より右側&lt;/returns>
/// &lt;param name="source">検索される値&lt;/param>
/// &lt;param name="key">検索値&lt;/param>
/// &lt;param name="nth">何番目の検索値？(1-)&lt;/param>
string StrRight(string source, string key, int nth = 1)
{
	string result = @"";
	if(1  >nth)
	{
		return result;
	}
	int start = 0;
	int next;
	for(int i = 1; i &lt;= nth; i++)
	{
		next = source.IndexOf(key, start, StringComparison.CurrentCultureIgnoreCase);
		if(0 > next)
		{
			start = 0;
			break;
		}
		start = next + key.Length;
	}
	if(0 &lt; start)
	{
		result = source.Substring(start);
	}
	return result;
}</code></pre>



<h2 id="excel" class="wp-block-heading">Excel</h2>



<p class="wp-block-paragraph">最初の検索値より右側を返す式はこちらです</p>



<pre class="wp-block-code"><code>=LET(VKEY,検索値,VVALUE,検索される値,VERROR,エラー時の値,IFERROR(MID(VVALUE,FIND(VKEY,VVALUE)+LEN(VKEY),LEN(VVALUE)),VERROR))</code></pre>



<p class="wp-block-paragraph">最後の検索値より右側を返す式はこちらです（LETでまとめていません）<br>検索値を仮の検索値へ置換し、切り出した後に検索値を戻しています</p>



<pre class="wp-block-code"><code>=IF(ISERROR(FIND(検索値,検索される値)),検索される値,MID(検索される値,FIND(仮の検索値,SUBSTITUTE(検索される値,検索値,仮の検索値,LEN(検索される値)-LEN(SUBSTITUTE(検索される値,検索値,""))))+1,LEN(検索される値)))</code></pre>



<h2 id="lotus-script-%25e8%25a8%2580%25e8%25aa%259e" class="wp-block-heading">Lotus Script 言語</h2>



<p class="wp-block-paragraph"><strong>左側から検索される値を検索します</strong><br>文字値 ＝ StrRight （検索される値，検索値，比較方法，何番目の検索値？）<br>文字値 ＝ StrRight （検索される値，検索値，比較方法）<br>文字値 ＝ StrRight （検索される値，検索値）</p>



<p class="wp-block-paragraph"><strong>右側から検索される値を検索します</strong><br>文字値 ＝ StrRightBack （検索される値，検索値，比較方法，何番目の検索値？）<br>文字値 ＝ StrRightBack （検索される値，検索値，比較方法）<br>文字値 ＝ StrRightBack （検索される値，検索値）</p>



<p class="wp-block-paragraph"><strong>比較方法</strong><br>0 ＝ 大文字小文字、全角半角を区別します<br>1 ＝ 大文字小文字を区別しません<br>4 ＝ 全角半角を区別しません<br>5 ＝ 大文字小文字、全角半角を区別しません</p>



<p class="wp-block-paragraph"><strong>戻り値には検索値を含みません</strong><br>例： ｛ABC｝ ＝ StrRight （｛ABCABC｝，｛c｝，1，2）</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
