<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AStr_find%2Fdoc</id>
	<title>Template:Str find/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AStr_find%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Str_find/doc&amp;action=history"/>
	<updated>2026-04-04T17:33:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Str_find/doc&amp;diff=11119&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Str_find/doc&amp;diff=11119&amp;oldid=prev"/>
		<updated>2013-05-30T01:19:39Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{Str find|&amp;lt;/nowiki&amp;gt;''text''|''sub_string''&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt; = Position of first appearance of ''sub_string'' in ''text''.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
In the examples, the string to be searched is &amp;quot;Abcdefghijklm&amp;quot;:&lt;br /&gt;
* A; {{str find|Abcdefghijklm|A}}&lt;br /&gt;
* a; {{str find|Abcdefghijklm|a}}&lt;br /&gt;
* def; {{str find|Abcdefghijklm|def}}&lt;br /&gt;
* klm; {{str find|Abcdefghijklm|klm}}&lt;br /&gt;
* zyx; {{str find|Abcdefghijklm|zyx}}&lt;br /&gt;
* empty;klm;{{str find||klm}}&lt;br /&gt;
* empty;empty; {{str find||}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Case sensitive.&lt;br /&gt;
* Returns -1 if ''sub_string'' not found&lt;br /&gt;
* Character position is 1 based (not 0 based as usual in calculations).&lt;br /&gt;
* '''Warning''': if ''sub_string'' is empty, then this routine will return 1 !!! This case will often have to be handled specially.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>