Page 1 of 1
help needd: grouping only brackets not working in linux
Posted: Fri Aug 10, 2007 1:43 am
by dev_net
hi everyone. I am facing strange problem. I am using brackets for grouping only purposes i.e (?: ). But it does not seem to work on linux. I am using Fedora core 4. Thanks in advance.
Posted: Fri Aug 10, 2007 2:23 am
by feyd
Code? Pattern? Doctor?
Posted: Fri Aug 10, 2007 2:38 am
by dev_net
what is doctor? As far as pattern and expression is concern; the situation is same. Grouping brackets are not working.

even a simple thing like this does not match any line in a text file
egrep '(?: )' test.txt
Posted: Fri Aug 10, 2007 3:28 am
by stereofrog
Try -P option.