I need to remove the language extension from the filename (eg. first.en ). Tried doing it using the following regex
{{ .File.BaseFileName | replaceRE "\.\w{2}" "" }}
This doesn’t compile.
How can I select the last three characters of the string then ?