<divclass="memberContent"><p>A class designed to handle all sorts of text searches within a <ahref="document.html"class="link-short"title="Document (class)"data-id="Document"><code>Document</code></a>.</p>
<divid="ellipsis_Search.new"class="ellipsis_description"><p>Creates a new <code>Search</code> object. The following search options are avaliable:</p>
</div>
<divclass="description"><p>Creates a new <code>Search</code> object. The following search options are avaliable:</p>
<ul>
<li><code>needle</code>: The string or regular expression you're looking for</li>
<li><code>backwards</code>: Whether to search backwards from where cursor currently is. Defaults to <code>false</code>.</li>
<li><code>wrap</code>: Whether to wrap the search back to the beginning when it hits the end. Defaults to <code>false</code>.</li>
<li><code>caseSensitive</code>: Whether the search ought to be case-sensitive. Defaults to <code>false</code>.</li>
<li><code>wholeWord</code>: Whether the search matches only on whole words. Defaults to <code>false</code>.</li>
<li><code>range</code>: The <ahref="range.html"class="link-short"title="Range (class)"data-id="Range"><code>Range</code></a> to search within. Set this to <code>null</code> for the whole document</li>
<li><code>regExp</code>: Whether the search is a regular expression or not. Defaults to <code>false</code>.</li>
<li><code>start</code>: The starting <ahref="range.html"class="link-short"title="Range (class)"data-id="Range"><code>Range</code></a> or cursor position to begin the search</li>
<li><code>skipCurrent</code>: Whether or not to include the current line in the search. Default to <code>false</code>.</li>
<divid="ellipsis_Search.find"class="ellipsis_description"><p>Searches for <code>options.needle</code>. If found, this method returns the <ahref="range.html"class="link-short"title="Range (class)"data-id="Range"><code>Range</code></a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
</div>
<divclass="description"><p>Searches for <code>options.needle</code>. If found, this method returns the <ahref="range.html"class="link-short"title="Range (class)"data-id="Range"><code>Range</code></a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
<h4>Arguments</h4><tableclass="argumentTable argument-list table table-striped table-bordered"><trclass="argumentRow "><tdclass="argName ">session</td><tdclass="argType""><ahref="edit_session.html"class=""title="EditSession (class)"data-id="EditSession">EditSession</a></td><tdclass="argDescription "><p>Required. The session to search with</p>
<divid="ellipsis_Search.findAll"class="ellipsis_description"><p>Searches for all occurances <code>options.needle</code>. If found, this method returns an array of <ahref="range.html"class="link-short"title="Range (class)"data-id="Range"><code>Range</code>s</a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
</div>
<divclass="description"><p>Searches for all occurances <code>options.needle</code>. If found, this method returns an array of <ahref="range.html"class="link-short"title="Range (class)"data-id="Range"><code>Range</code>s</a> where the text first occurs. If <code>options.backwards</code> is <code>true</code>, the search goes backwards in the session.</p>
<h4>Arguments</h4><tableclass="argumentTable argument-list table table-striped table-bordered"><trclass="argumentRow "><tdclass="argName ">session</td><tdclass="argType""><ahref="edit_session.html"class=""title="EditSession (class)"data-id="EditSession">EditSession</a></td><tdclass="argDescription "><p>Required. The session to search with</p>
<divid="ellipsis_Search.replace"class="ellipsis_description"><p>Searches for <code>options.needle</code> in <code>input</code>, and, if found, replaces it with <code>replacement</code>.</p>
</div>
<divclass="description"><p>Searches for <code>options.needle</code> in <code>input</code>, and, if found, replaces it with <code>replacement</code>.</p>
<h4>Arguments</h4><tableclass="argumentTable argument-list table table-striped table-bordered"><trclass="argumentRow "><tdclass="argName ">input</td><tdclass="argType""><ahref="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String"class=""title="String"data-id="String">String</a></td><tdclass="argDescription "><p>Required. The text to search in</p>
</td></tr><trclass="argumentRow "><tdclass="argName ">replacement</td><tdclass="argType""><ahref="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String"class=""title="String"data-id="String">String</a></td><tdclass="argDescription "><p>Required. The replacing text</p>
<li>(String): If <code>options.regExp</code> is <code>true</code>, this function returns <code>input</code> with the replacement already made. Otherwise, this function just returns <code>replacement</code>.<br/>
If <code>options.needle</code> was not found, this function returns <code>null</code>.</li>
<h4>Arguments</h4><tableclass="argumentTable argument-list table table-striped table-bordered"><trclass="argumentRow "><tdclass="argName ">options</td><tdclass="argType""><ahref="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object"class=""title="Object"data-id="Object">Object</a></td><tdclass="argDescription "><p>Required. An object containing all the new search properties</p>