The Delword function returns the string that remains when a word sequence is removed from another string.
result = Delword( string, offset [, length ] ) |
The string returned includes all spaces prior to the first word that is removed. Extraneous spaces after the last word that is removed are discarded.
Examples:
say Delword( 'Keep things simple', 5 ) -- shows: 'Keep things simple ' say Delword( 'Everything should be made as simple as possible, but not simpler', 9 ) -- shows: 'Everything should be made as simple as possible,' say Delword( 'Everything should be made as simple as possible, but not simpler', 5, 6 ) -- shows: 'Everything should be made simpler' |