I am trying to match a text string from a field. For example, link (0000)
, where I am trying to match the last “)” and then trim the last seven characters. Not all of my links will need to remove the (0000)
part.
<$link to={{!!field-name}}>
<$text text={{{ [<currentTiddler>get{!!field-name}]match[)]trim[7] :else{!!field-name}] }}}/>
</$link>