in reply to Re: Regex - one and only one / at beginning and end of file path
in thread Regex - one and only one / at beginning and end of file path

Misread the question

  • Comment on Re: Re: Regex - one and only one / at beginning and end of file path

Replies are listed 'Best First'.
Re: Re: Re: Regex - one and only one / at beginning and end of file path
by shenme (Priest) on Dec 15, 2003 at 00:19 UTC
    Didn't we lose the action of adding '/' when not present at the ends somewhere?   It seems that s!/{2,}!/!g; at least leaves 'foo/bar' as itself.   Which of these RE's are for explication only?