mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
707 B
Plaintext
20 lines
707 B
Plaintext
3 years ago
|
Words vs. WORDS
|
||
|
|
||
|
Words and WORDS are two very similar types of text objects. A word
|
||
|
is a string of "word" characters, which include letters, numbers,
|
||
|
and underscores. A WORD, on the other hand, is any string of
|
||
|
non-whitespace characters.
|
||
|
|
||
|
In the example below, the words are underlined by 'w', and the
|
||
|
WORDS are underlined by 'W'.
|
||
|
|
||
|
This "stuff" is not-so difficult!
|
||
|
---------------------------------
|
||
|
wwww wwwww ww www ww wwwwwwwww
|
||
|
WWWW WWWWWWW WW WWWWWW WWWWWWWWWW
|
||
|
|
||
|
As is visible in the example, the words do not include any of the
|
||
|
non-alphanumeric punctuation, while the WORDS do include the
|
||
|
quotes, hyphen, and exclamation point. Also notice that 'not-so'
|
||
|
contains two words, but only one WORD.
|