comparison runtime/doc/pattern.txt @ 8951:0bdeaf7092bc

commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 21 08:53:19 2016 +0200 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Apr 2016 09:00:08 +0200
parents 47f17f66da3d
children 34c45ee4210d
comparison
equal deleted inserted replaced
8950:4112e9a27a93 8951:0bdeaf7092bc
574 574
575 An atom can be followed by an indication of how many times the atom can be 575 An atom can be followed by an indication of how many times the atom can be
576 matched and in what way. This is called a multi. See |/multi| for an 576 matched and in what way. This is called a multi. See |/multi| for an
577 overview. 577 overview.
578 578
579 */star* */\star* *E56* 579 */star* */\star*
580 * (use \* when 'magic' is not set) 580 * (use \* when 'magic' is not set)
581 Matches 0 or more of the preceding atom, as many as possible. 581 Matches 0 or more of the preceding atom, as many as possible.
582 Example 'nomagic' matches ~ 582 Example 'nomagic' matches ~
583 a* a\* "", "a", "aa", "aaa", etc. 583 a* a\* "", "a", "aa", "aaa", etc.
584 .* \.\* anything, also an empty string, no end-of-line 584 .* \.\* anything, also an empty string, no end-of-line
594 position to the last occurrence of "END" in the file. Since the "*" 594 position to the last occurrence of "END" in the file. Since the "*"
595 will match as many as possible, this first skips over all lines until 595 will match as many as possible, this first skips over all lines until
596 the end of the file and then tries matching "END", backing up one 596 the end of the file and then tries matching "END", backing up one
597 character at a time. 597 character at a time.
598 598
599 */\+* *E57* 599 */\+*
600 \+ Matches 1 or more of the preceding atom, as many as possible. {not in 600 \+ Matches 1 or more of the preceding atom, as many as possible. {not in
601 Vi} 601 Vi}
602 Example matches ~ 602 Example matches ~
603 ^.\+$ any non-empty line 603 ^.\+$ any non-empty line
604 \s\+ white space of at least one character 604 \s\+ white space of at least one character
610 610
611 */\?* 611 */\?*
612 \? Just like \=. Cannot be used when searching backwards with the "?" 612 \? Just like \=. Cannot be used when searching backwards with the "?"
613 command. {not in Vi} 613 command. {not in Vi}
614 614
615 */\{* *E58* *E60* *E554* *E870* 615 */\{* *E60* *E554* *E870*
616 \{n,m} Matches n to m of the preceding atom, as many as possible 616 \{n,m} Matches n to m of the preceding atom, as many as possible
617 \{n} Matches n of the preceding atom 617 \{n} Matches n of the preceding atom
618 \{n,} Matches at least n of the preceding atom, as many as possible 618 \{n,} Matches at least n of the preceding atom, as many as possible
619 \{,m} Matches 0 to m of the preceding atom, as many as possible 619 \{,m} Matches 0 to m of the preceding atom, as many as possible
620 \{} Matches 0 or more of the preceding atom, as many as possible (like *) 620 \{} Matches 0 or more of the preceding atom, as many as possible (like *)