~ubuntu-branches/ubuntu/karmic/zsh/karmic

« back to all changes in this revision

Viewing changes to Doc/Zsh/mod_regex.yo

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-06-02 10:40:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602104025-lg6wynxpzqi08k2i
Tags: 4.3.10-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  + debian/zshrc: Enable completions by default, unless
    skip_global_compinit is set

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
findex(regex-match)
9
9
item(var(expr) tt(-regex-match) var(regex))(
10
10
Matches a string against a POSIX extended regular expression.
11
 
The matched portion of the string will normally be placed in the tt(MATCH)
 
11
On successful match,
 
12
matched portion of the string will normally be placed in the tt(MATCH)
12
13
variable.  If there are any capturing parentheses within the regex, then
13
14
the tt(match) array variable will contain those.
 
15
If the match is not successful, then the variables will not be altered.
14
16
 
15
17
For example,
16
18