On 08/05/10 00:17, Bee wrote:
Too subtile for me!

I have looked and searched, this is the only difference I can find.

*[:blank:]*     [:blank:]     space and tab characters
*[:space:]*     [:space:]     whitespace characters

What are other whitespace characters are than space and tab?

On the Mac non-breaking space is xA0 and neither find it.

Search for /\%xA0 finds the Mac non-breaking space.

You have the right idea. Remember that a [...] character-class can be prefixed by "\_" to include newlines, so you might do something like

  /the\_[[:space:]]\+brackets

(finds a match in my help on those POSIX-style character-classes) whereas it won't find a match if you use [[:blank:]]

There are other Unicode whitespace characters (such as thin-space and perhaps your non-breaking space, and other similar variants) so [:blank:] is "JUST tabs and spaces" while [:space:] should find any of the more generic whitespace.

-tim




--
You received this message from the "vim_use" 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

Reply via email to