Used for searching and replacing text.
A match generator is returned from Editor:match which can
be used to iterate search results. While looping through matches, if the document is modified by any
method other than the match object's replace method, this may cause the match generator to lose its
place. Also, do not attempt to store the match object for later access outside the loop; it will not
for m in editor:match("teh") do
Beginning position of the located match.
Length of text matched.
The actual text matched.
Replaces the matched text.
String representation of the match.