returns a modified document
Arguments
The document we use for all the examples below is:
Replace lost with loosed:
Pos% = 0
Search% = "lost"
InsRepDoc$ = "lost"
So:
returns:
Add , and immediately behind loosed:
Pos% = 1
Search% = "loosed"
InsRepDoc$ = ", and"
So:
returns:
Add -dimmed immediately before tide, including the space, so make sure to define " tide":
Pos% = -1
Search% = " tide"
InsRepDoc$ = ", -dimmed"
So:
returns:
Add Mere anarchy is loosed upon the world after the first sentence:
Pos% = 1
Search% = "NullString"
InsRepDoc$ = "Mere anarchy is loosed upon the world"
So:
returns:
Add Turning and turning in the widening gyre two lines before the first sentence:
Pos% = -2
Search% = "NullString"
InsRepDoc$ = "Turning and turning in the widening gyre"
So:
returns:
Add The falcon cannot hear the falconer; one line after the word widening:
Pos% = 2: the insert will be done (Pos%-1) lines after the line with Search%
Search% = "widening"
InsRepDoc$ = "The falcon cannot hear the falconer;"
So:
returns:
Add The Second Coming two lines before the word widening:
Pos% = -2: the insert will be done -2 lines before the line with Search%
Search% = "widening"
InsRepDoc$ = "The Second Coming"
So:
returns:
Quick links: Function overview | Attribute overview | Constants overview | Dimensions overview