Gentoo Archives: gentoo-user

From: Zhang Weiwu <zhangweiwu@××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT] confusing RE doesn't work in diff
Date: Mon, 25 Jul 2005 09:56:05
Message-Id: 1122285037.4411.104.camel@localhost.localdomain
1 My RE must be wrong but I can hardly successfully match a whole line
2 like the below example:
3
4 This works:
5 zhangweiwu@Bach:/tmp$ egrep "\b*\/[*].*[*]\/\b*" Calendar.php
6 /* $Id: class.boalarm.inc.php,v 1.1.1.1 2005/03/18 09:17:36
7 dawnlinux Exp $ */
8 /* $Id: class.boalarm.inc.php,v 1.11 2004/05/23 14:51:27
9 ralfbecker Exp $ */
10
11 This doesn't work:
12 zhangweiwu@Bach:/tmp$ egrep "^\b*\/[*].*[*]\/\b*$" Calendar.php
13
14 any hint?
15
16 --
17 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] confusing RE doesn't work in diff Christoph Gysin <cgysin@×××.ch>
Re: [gentoo-user] [OT] confusing RE doesn't work in diff "Mariusz Pękala" <skoot@××.pl>