asab has asked for the wisdom of the Perl Monks concerning the following question:
I am looking for regex for the below experession.
/tom/john/jones/fredy/sam-joe/Install-xyz-opq.zipI want extract the Install-xyz-opq.zip from the above pattern
conditions are number of directories from / to Install-xyz-opq.zip is always variable. directory names may contain - and other allowed special character in linux. but the pattern always ends with Install-xyz-opq.zip. can you guys please provide me with this RegEx.
Thanks in advance
asab
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: RegEx is required for the below pattern
by toolic (Bishop) on Sep 28, 2011 at 14:22 UTC | |
Re: RegEx is required for the below pattern
by ww (Archbishop) on Sep 28, 2011 at 14:15 UTC | |
Re: RegEx is required for the below pattern
by dreadpiratepeter (Priest) on Sep 28, 2011 at 14:12 UTC | |
Re: RegEx is required for the below pattern
by Ratazong (Monsignor) on Sep 28, 2011 at 14:13 UTC | |
Re: RegEx is required for the below pattern
by hbm (Hermit) on Sep 28, 2011 at 14:13 UTC | |
Re: RegEx is required for the below pattern
by rnaeye (Friar) on Sep 28, 2011 at 14:45 UTC | |
by asab (Sexton) on Sep 28, 2011 at 15:38 UTC |