Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 1998 20:12:05 -0500 (EST)
From:      Mikhail Teterin <mi@video-collage.com>
To:        questions@FreeBSD.ORG
Subject:   re_format
Message-ID:  <199811200112.UAA17886@xxx.video-collage.com>

next in thread | raw e-mail | index | archive | help
Hello!

According to the re_format's manpage, the following

	echo aXbXccc | sed 's/X.*/X/2'

must result in aXbX -- the second occurence of X.* to be replaced
by X itself.

Yet, it results in aXbXccc -- no changes. To the best of my
understanding of re_format, ``X.*'' is a perfectly valid regular
expression, matching anything that starts with ``X''...

Thanks for any hints.

	-mi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811200112.UAA17886>