Closed yoavnir closed 2 years ago
wordplus(s,d[,l]) returns the word or words following or preceding the first word in the input line matching s.
wordplus(s,d[,l])
s
For example, if the input line looks like this:
“Though thy crest be shorn and shaven, thou,” I said, “art sure no craven,
Then,
wordplus("shorn", 1)
and
wordplus("shorn", 2)
shaven,
wordplus("shorn", 0)
shorn
wordplus("shorn", -1)
be
wordplus("shorn", -5)
wordplus("shorn", 2, 3)
shaven, thou, "I
Similar for fieldplus
fieldplus
Let's rename these:
The first word/field/character of the found thing is "1"
So,
splus("gh", 0)
g
splus("gh", 1)
h
splus("gh", 3)
t
s in splus stands for search
wordplus(s,d[,l])
returns the word or words following or preceding the first word in the input line matchings
.For example, if the input line looks like this:
Then,
wordplus("shorn", 1)
=and
wordplus("shorn", 2)
=shaven,
wordplus("shorn", 0)
=shorn
wordplus("shorn", -1)
=be
wordplus("shorn", -5)
- errorwordplus("shorn", 2, 3)
=shaven, thou, "I
Similar for
fieldplus