Diesel to show nth last letter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Morning, I was wondering if anyone may have a diesel code which will always show the n'th letter of a file name AFTER a specific part of text
Drawing_Plan_Rev_A.dwg
I currently have this diesel code which always shows a specific charater n'th, but it requires me to create a variant for each type of file name length, as well as a code which shows the n'th last character
$(substr,$(getvar,"dwgname"),17,$(-,$(strlen,$(getvar,"dwgname")),20))
$(substr,$(getvar,dwgname),$(-,$(strlen,$(getvar,dwgname)),4),1)
If possible however, would it be possible for someone to create and explain a diesel code to show the character after the characters "Rev_", where the "_" is indicated with a 'space' within a file name.
If anyone can help with this it would be much appreciated.
Kind Regards,