User Tools

Site Tools


remws

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

remws [2006/08/29 16:08] (current)
Line 1: Line 1:
 +# $EPIC: remws.txt,v 1.2 2006/08/19 06:07:20 sthalik Exp $
 +======Synopsis:​======
 +$__remws__(<​lwords>​ / <​rwords>​)
 +
 +======Technical:​======
 +   * The first literal slash character found in the input acts as the separator between <​lwords>​ and <​rwords>​. ​ This means that <​lwords>​ must not contain any slashes, but <​rwords>​ may.  If you do not put in a slash somewhere, the empty string is returned.
 +   * Any extra spaces between words in <​rwords>​ will be removed.
 +   * The return value of this function will be all words in <​rwords>​ that are NOT also in <​lwords>​.
 +   * This function can be quite expensive for large input strings.
 +
 +======Practical:​======
 +You would use this function if you needed to remove more than one word
 +at a time from a word list.  <​rwords>​ is the word list, and <​lwords> ​
 +are the words you want to have removed from <​rwords>​. ​ If you just want
 +to remove one word, use $[[remw]]().
 +
 +======Returns:​======
 +<​rwords>​ with <​lwords>​ removed
 +
 +======Examples:​======
 +<​file>​
 +$remws(foo bar / test blah foo fnord bar nyah) returns "test blah fnord nyah"
 +</​file>​
  
remws.txt ยท Last modified: 2006/08/29 16:08 (external edit)