N
Ne Scripter
Hi all,
I thought this would be easy, but I am clearly mixing up my logic. I
have a string like so
string = "joe|blogg|clothing|"
I want to remove the last pipe with a reg ex and I am trying to use the
following code to do so:
string(/\|$/, 1)
This however is not doing anything except delete the entire string, any
suggestion are greatly appreciated.
Many thanks
I thought this would be easy, but I am clearly mixing up my logic. I
have a string like so
string = "joe|blogg|clothing|"
I want to remove the last pipe with a reg ex and I am trying to use the
following code to do so:
string(/\|$/, 1)
This however is not doing anything except delete the entire string, any
suggestion are greatly appreciated.
Many thanks