Tinderbox Forum

Trimming the first character in $Name after Exploding notes?

How would I remove the first character from the name? For example: in using the explode note, I have some notes that have a single character.

Example:
#Name1
#Name2
#Name3

In this case: how would I remove the “#”

Want:
Name1
Name2
Name3

Thanks in advance
Tom

One approach might be, if your note delimiter is #, to check Delete Delimiter.

Or, you could set the Action in the Explode dialog to

. $Name=$Name.substr(1)

which means, “set the name to the part of the name after the first character.”

Thanks Mark.

Wow, after so many years, I had not noticed the delete deliminator option. Works great. Thanks for the code explanation as well, great extra tip.

Tom