--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote:
>
> "For each word" handles only blank separated words. Could it be
> enhanced to somehow handle specified delimiters?
> 
> Regards,
> Sheri
>

I don't plan at this stage.  

If blank is still one of the delims, you can use something like
for each word w in str.replacechars(",:.;?! ")  

if blank is not a delim, then you could use
for each word w in str.replacechars(" \02").replacechars(",:.;?! ")
w=w.replacechars("\02 ")

although it is probably simpler just to use
for (w=str.nextword("str",delims);w;w=str.nextword("str",delims))

Of course, you would most likely use a regexp, not replacechars <g>.



Reply via email to