tooth pik wrote:

> excuse me but really:  echo
> trim("rm<blob1><blob2><any_chars>rrmm<blob1><blob2><blob2>",
> "rm<blob1><blob2>")
> echoes "any_chars" not any_chas
> 
> trim() is intended, and does, remove characters from the
> beginning and/or end of strings, not out of the middle
> 
> I need to learn to have more faith in myself

I noticed last moment that this is not a good example, doesn't really
help the user understand how it works.  This should be better:

                Examples: >
                        echo trim("   some text ")
<               returns "some text" >
                        echo trim("  \r\t\t\r RESERVE \t\n\x0B\xA0") . "_TAIL"
<               returns "RESERVE_TAIL" >
                        echo trim("rm<Xrm<>X>rrm", "rm<>")
<               returns "Xrm<>X" (characters in the middle are not removed)


-- 
Well, you come from nothing, you go back to nothing...  What have you
lost?  Nothing!
                                -- Monty Python: The life of Brian

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui