[sharing] remove file extension

mharter's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here is a quick patch that removes a file extension. It could be useful for adding file names to menus or buttons.

Luke Hall's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You can do that with [regexp] too.

Dg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

@mharter the [zl ecils 1] is not necessary because [zl sub] left outlet doesn't send a list but successive position with the most right occurence in the list source, at last.

kugelschreiber's icon

hello luke,

do you have another regexp hint, which allowes to output
filenames without extentions ?

that would be great !

Max Patch
Copy patch and select New From Clipboard in Max.

here is the example:

Luke Hall's icon

The [strippath] object does that and there's a [regexp] example in the "high priority" subpatch of the help file.

kugelschreiber's icon

hello luke,

thanks a lot for the ultrafast response !

it is always amazing, that so much information is
hidden in the helpfiles :-)

to c74: a redesign of the helpfiles would be cool !

best,
k.