Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Suggestion for new file name filter

Re: Suggestion for new file name filter

From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Mon, 28 Oct 2002 19:08:47 +0100 (MET)

On Mon, 28 Oct 2002, Nanne Huiges wrote:

> and then have them contain a (perl like) regexp, so you can just do
> something like
>
> s/-(.*)-//
>
> wich would mean (sorry, my perl is abit rusty, so it might be crap)
> any string starting with a - and ending with a - is replaces with
> nothing..

Your perl isn't totally rusty (you mean "s/-(.*)-/$1/" as regex).

But I want it to be more dynamic. As first stated in the thread, it could be
cool to make the name out of the content of the prior filename. A regex is
then a lot more complicated (or I miss the solution).

That's why I think a real user example is good to talk around. When trying
that part it all gets a bit more complicated.

  // Kjell
Received on 2002-10-28

Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew