Re: [solved] How to cut off parts of an url

2009-07-22 Thread Peter
Hello, the solution from John W. Krahn 'did the trick': s!^.*/something_constant/[^/]+/!!; Thank's a lot to John and Chas Peter > I've to cut off parts of an url like > '/something_variable_1/something_constant/something_variable_2/something_va >riable_3/filename' > > The result should be 'som

Re: How to cut off parts of an url

2009-07-20 Thread Chas. Owens
On Mon, Jul 20, 2009 at 04:52, wrote: > Hello, > > I've to cut off parts of an url like > '/something_variable_1/something_constant/something_variable_2/something_variable_3/filename' > > The result should be 'something_variable_3/filename' > > To cut off the part '/something_variable_1/something

Re: How to cut off parts of an url

2009-07-20 Thread John W. Krahn
peter-mail...@web.de wrote: Hello, Hello, I've to cut off parts of an url like '/something_variable_1/something_constant/something_variable_2/something_variable_3/filename' The result should be 'something_variable_3/filename' To cut off the part '/something_variable_1/something_constant' w

How to cut off parts of an url

2009-07-20 Thread peter-mailbox
Hello, I've to cut off parts of an url like '/something_variable_1/something_constant/something_variable_2/something_variable_3/filename' The result should be 'something_variable_3/filename' To cut off the part '/something_variable_1/something_constant' works with the regular expression 's/^.*