If you want to display only the file names without the extensions, but color them based on extensions, you could use HideExtensions=1, have Type=FileType child measures, then name the color variables using the extension names. Something like:
Apart from having a FileType measure for each corresponding FileName measure (which would obviously be much more verbose than a single common meter style using InlineSetting options, albeit it's mostly copy paste), this does display colored filenames with no extensions and doesn't use any regex. So, it's really about which way you feel more comfortable with and how much you want to not display the file extensions in the meters.
Code:
[Variables]PngColor=...png color...JpgColor=...jpg color...Color=...no extension color......[Folder]...HideExtensions=1[FileName1]...Type=FileName[FileExt1]...Type=FileType[FileName2]...Type=FileName[FileExt2]...Type=FileType...[FileText1]...FontColor=[FileExt1]ColorText=[FileName1]DynamicVariables=1[FileText2]...FontColor=[FileExt2]ColorText=[FileName2]DynamicVariables=1
Statistics: Posted by Yincognito — Yesterday, 5:59 pm