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
51
S
30
G
11
Posts: 226
Reputation: 10,572

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
51
S
30
G
11
Posts: 226
Reputation: 10,572

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests