How do I use RegexReplace to remove last character?

Get help using Construct 2

Post » Fri Sep 30, 2016 3:51 pm

@Magistross

Cooooollllllllllllll!!! ; -))) Thanks! 8-)
B
57
S
35
G
16
Posts: 232
Reputation: 13,768

Post » Sun Feb 05, 2017 10:40 pm

justifun wrote:you could use "left(word, len(word-1))

it will only keep all of the letters except the last one.


There was a slight mistake in Justifun's answer, but the following works perfectly:

Code: Select all
left(word, len(word)-1)


I needed something similar and this helped me out, thanks!
B
5
G
1
Posts: 1
Reputation: 352

Post » Mon Feb 06, 2017 9:24 am

Great! ; -)
B
57
S
35
G
16
Posts: 232
Reputation: 13,768

Previous

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 32 guests