On 2016-04-07 04:00, DJ-Pfulio wrote: > On 04/06/2016 08:08 PM, Alex Carver wrote: >> >> %.* trims everything from f after the last dot (including the dot) >> returning the prefix > > What happens if there isn't any suffix? > May need to check for that. If there is no suffix (and no dots) it returns whatever it received. So: foo.sh -> foo bar.rb -> bar baz -> baz uh.oh.py -> uh.oh