REPLINS$ returns returns a modified document
REPLINS$(Document$, Search$, InsRepDoc$, Pos%, [Mode%=0,1])
Arguments
...
...
Add Mere anarchy is loosed upon the world after the first sentence:
Pos% = 1
Search$ = "NullString"
InsRepDoc$ = "Mere anarchy is loosed upon the world"
...
Document4$ = REPLINS$(Document3$, "NullString", "Mere anarchy is loosed upon the world", 1)
...
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"
...
Document5$ = REPLINS$(Document4$, "NullString", "Turning and turning in the widening gyre", -2)
...
"The Second Coming
Turning and turning in the widening gyre
The falcon cannot hear the falconer;
Things fall apart; the centre cannot hold;
Mere anarchy is loosed upon the world
The blood-dimmed tide is loosed, and everywhere"
Quick links: Function overview | Attribute overview | Constants overview | Dimensions overview