in reply to Text elimination within a string
s/^\(.*\)//;
As long as you are sure there will be no braces in the following text.
If text in braces is always in upper case, you could use:
s/^\([^a-z]+\)//;
to eliminate that possible problem.
cLive ;-)
Update: - added some hats to the regex (forgot them earlier...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Text elimination within a string
by how do i know if the string is regular expression (Initiate) on Apr 08, 2001 at 17:48 UTC | |
by alfie (Pilgrim) on Apr 09, 2001 at 11:46 UTC | |
by cLive ;-) (Prior) on Apr 09, 2001 at 02:45 UTC | |
|
Re: Re: Text elimination within a string
by Beatnik (Parson) on Apr 08, 2001 at 16:30 UTC | |
by cLive ;-) (Prior) on Apr 09, 2001 at 02:38 UTC |