Following expression can be used to get the last porting of the string after "-", See if this meets your requirement{% let idx = lastIndexOf("hello-world-test-string","-" ) + 1 %}{%= substr("hello-world-test-string", idx, length("hello-world-test-string") ) %}