in reply to Re: This regular expression has me stumped
in thread This regular expression has me stumped
We always assume that the whole path starts with / But the path can be some/path/to/filename also! In that case this will definitely fail. I am scratching my head as to what kind of check to put in for that. Helllp!! :)this can work right ? /fjsdklf/fjsldkfs/fsjdklf-fs-0-fsf/../fjskfjs/.. +/../../fsfkslf/filename ../../../../filename ../hello dofghello/two/forut/../filename2 Will this work ../../../../jfsdfjskdlfjs/../fjsklf/fjksfjskflsd/filena +me I will do replacement for ../filename this can work right /fjsdklf/fjsldkfs/fsjdklf-fs-0-fsf/../fjskfjs/../ +../../fsfkslf/filename I will think of even/more/silly/../../harder/cases/../analysis/filenam +e and do it ../twice as well as put/some/path/and/make/it/thrice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Okay, I know why is it failing
by tsk1979 (Scribe) on May 02, 2008 at 06:42 UTC | |
by tachyon-II (Chaplain) on May 02, 2008 at 09:34 UTC | |
by tsk1979 (Scribe) on May 03, 2008 at 09:17 UTC | |
by tachyon-II (Chaplain) on May 03, 2008 at 12:24 UTC |