amoura has asked for the wisdom of the Perl Monks concerning the following question:
but this time my path looks like this
I need to take off the () at the end so the data should look like this\sbs\v5\strans.cxx@@\main\den\7 (in_12) \sbs\v5\c\ns.cxx@@\main\den\7 (out_11) \sbs\v5\c\ans.h@@\main\den\3 (in_22)
I am not seem to be able to reach the () , I am doing somthing like :\sbs\v5\strans.cxx@@\main\den\7 \sbs\v5\c\ns.cxx@@\main\den\7 \sbs\v5\c\ans.h@@\main\den\3
but it is not touching the () at the end of each line$Path =~ tr/(\w)//d; also $Path =~ s/[(\w)]//;
thanks for help on this one
Edit by tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex
by Aristotle (Chancellor) on Jul 23, 2002 at 14:50 UTC | |
by redsquirrel (Hermit) on Jul 23, 2002 at 14:57 UTC | |
Re: regex
by Speedy (Monk) on Jul 23, 2002 at 15:17 UTC | |
Re: regex
by kodo (Hermit) on Jul 23, 2002 at 14:51 UTC | |
by Aristotle (Chancellor) on Jul 23, 2002 at 14:57 UTC | |
by kodo (Hermit) on Jul 23, 2002 at 16:55 UTC | |
by Aristotle (Chancellor) on Jul 23, 2002 at 18:04 UTC |