[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sed or regex bug?
From: |
Vartan Stepanian |
Subject: |
Sed or regex bug? |
Date: |
Sat, 5 Oct 2002 02:30:55 -0700 (PDT) |
Hello,
I think I may have found a bug in sed.
echo "hi"|sed -e 's/[\(a\)\(b\)]//'
The above parses without a problem.
Now assume the following for "a":
\(\(\(\(\([0-9]\+\)\)\)\?x\(\([\^]\([0-9]\+\)\)\)\?\)\)
it parses by itself.
And assume the following for "b":
\(\([0-9]\+\)\)
it parses by itself also..
Now why can't I substitute a and b into this
expression: [\(a\)\(b\)]
########################################################################
bash-2.05a$ echo "hi"|sed -e
's/[\(\(\(\(\([0-9]\+\)\)\)\?x\(\([\^]\([0-9]\+\)\)\)\?\)\)\(\([0-9]\+\)\)]//'
sed: -e expression #1, char 76: Unmatched ( or \(
########################################################################
bash-2.05a$ uname -a
Linux hosntame 2.4.18-3 #1 Thu Apr 18 07:32:41 EDT
2002 i686 unknown
This is a redhat 7.3 installation.
Vartan
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
- Sed or regex bug?,
Vartan Stepanian <=