Searches for options.needle
. If found, this method returns the [[Range Range
]] where the text first occurs. If options.backwards
is true
, the search goes backwards in the session.
The session to search with
Searches for all occurrances options.needle
. If found, this method returns an array of [[Range Range
s]] where the text first occurs. If options.backwards
is true
, the search goes backwards in the session.
The session to search with
[Returns an object containing all the search options.]{: #Search.getOptions}
Searches for options.needle
in input
, and, if found, replaces it with replacement
.
The text to search in
The replacing text
options.regExp
is true
, this function returns input
with the replacement already made. Otherwise, this function just returns replacement
.options.needle
was not found, this function returns null
.Sets the search options via the options
parameter.
An object containing all the new search properties
Sets the search options via the options
parameter.
object containing all the search propertie
A class designed to handle all sorts of text searches within a [[Document
Document
]].