summaryrefslogtreecommitdiffstats
path: root/doc/regexp.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-10-25 09:25:27 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-10-25 09:25:27 (GMT)
commit859f56b5099b2bfd3ad42becd2aaddca16196ce2 (patch)
treea55358a428b5851b24d6a6406ae63dc80f3b016d /doc/regexp.n
parent79cc10a2e22854d53a72f18f95e87a867df9925a (diff)
downloadtcl-859f56b5099b2bfd3ad42becd2aaddca16196ce2.zip
tcl-859f56b5099b2bfd3ad42becd2aaddca16196ce2.tar.gz
tcl-859f56b5099b2bfd3ad42becd2aaddca16196ce2.tar.bz2
GOOBE for command results in examples
Diffstat (limited to 'doc/regexp.n')
-rw-r--r--doc/regexp.n13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/regexp.n b/doc/regexp.n
index 99e75f3..4aa88e2 100644
--- a/doc/regexp.n
+++ b/doc/regexp.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: regexp.n,v 1.20 2007/10/24 14:29:39 dkf Exp $
+'\" RCS: @(#) $Id: regexp.n,v 1.21 2007/10/25 09:25:27 dkf Exp $
'\"
.so man.macros
.TH regexp n 8.3 Tcl "Tcl Built-In Commands"
@@ -114,12 +114,15 @@ list will be concatenated at each iteration, such that a flat list is
always returned. For each match iteration, the command will append the
overall match data, plus one element for each subexpression in the
regular expression. Examples are:
+.RS
.CS
- regexp -inline -- {\\w(\\w)} " inlined "
- => {in n}
- regexp -all -inline -- {\\w(\\w)} " inlined "
- => {in n li i ne e}
+.ta 2i
+\fBregexp\fR -inline -- {\\w(\\w)} " inlined "
+ \fB\(->\fI in n\fR
+\fBregexp\fR -all -inline -- {\\w(\\w)} " inlined "
+ \fB\(->\fI in n li i ne e\fR
.CE
+.RE
.TP 15
\fB\-start\fR \fIindex\fR
Specifies a character index offset into the string to start