Hello!
I want to split the displayname like “xxx\yyy\zzz$\aaa.bbb.ccc.ddd”
Is it possible to get with {{displayName.split(‘\’)}} the last position, when I don’t know how much "" are in string?
rg
Hansi
Hello!
I want to split the displayname like “xxx\yyy\zzz$\aaa.bbb.ccc.ddd”
Is it possible to get with {{displayName.split(‘\’)}} the last position, when I don’t know how much "" are in string?
rg
Hansi
Hi Hansi
Does this work for you?
{{displayName.split(‘\’)[displayName.split(‘\’).length - 1]}}
Hello!
Sorry, this doesn’t work for me.
Hi Hansi,
Please try this and let me know if that works.
{{ displayName.split('\\\\')[displayName.split('\\\\').length - 1] }}