help needd: grouping only brackets not working in linux

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
dev_net
Forum Newbie
Posts: 5
Joined: Fri Aug 10, 2007 1:39 am

help needd: grouping only brackets not working in linux

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code? Pattern? Doctor?
dev_net
Forum Newbie
Posts: 5
Joined: Fri Aug 10, 2007 1:39 am

Post 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
User avatar
stereofrog
Forum Contributor
Posts: 386
Joined: Mon Dec 04, 2006 6:10 am

Post by stereofrog »

Try -P option.
Post Reply