Abbreviate keyword value with combination of modifiers?


(jtris) #1

Matrix Version: 5.4.0.3

Odd question, but does anyone know if this is possible using built in keyword modifiers? A design I’m working on requires some abbreviations of asset names, and I’m hoping to automate rather than create a purpose metadata field…

So

Hello World

would become

HW


(Peter McLeod) #2

Hi

A regex modifer maybe…

Something like below might work for simple cases:

%asset_name^replace:(\B[a-zA-Z0-9]):^replace: :^uppercase%

Thanks
Peter


(jtris) #3

@PeterM that works nicely. Thanks :slight_smile:


(Peter McLeod) #4

Also…

If there are non-alphnumeric chars in the title - you might want to strip these out first as well before the regex is called.

Thanks
Peter