in reply to Re: Drop middle part in a substitution
in thread Drop middle part in a substitution
Not to be picky but you are aware that newlines are valid in filenames under some OS's, right?
s/^(\.*\.).*(...)$/$1$2/s;
Of course, two periods within a filename may also throw this off.
Update: Ok. You all got me. I'm a dipshit. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Drop middle part in a substitution
by Not_a_Number (Prior) on Jan 26, 2004 at 19:56 UTC | |
|
Re^3: Drop middle part in a substitution
by Roy Johnson (Monsignor) on Jan 26, 2004 at 18:29 UTC | |
|
Re: Re: Re: Drop middle part in a substitution
by ambrus (Abbot) on Jan 27, 2004 at 15:18 UTC | |
|
Re: Re: Re: Drop middle part in a substitution
by ysth (Canon) on Jan 26, 2004 at 23:49 UTC |