A
A
Anton Ipatov2021-05-10 00:02:29
ruby
Anton Ipatov, 2021-05-10 00:02:29

How to remove words from a string in ruby?

Hello, how to leave only the penultimate character 2

in the text test.com/426c62c2-9313-4e42-9d33-eec52adbafa5~ 2 /

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Blokhin, 2021-05-10
@TITnet

'test.com/426c62c2-9313-4e42-9d33-eec52adbafa5~2/'[-2]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question