04-02-2024 03:40 AM - edited 04-02-2024 05:09 AM
I have the string "1245; In#111111; testing, release" and my output should be "11169"
how to extra these?
I have tried the below approach but it work only on the last index.
x.split(";").last().strip.gsub("In#","")
04-02-2024 12:27 PM
Assuming the input can have any number of semi-colons but only one # character, this should work:
x.split("#")[1].split(";")[0]
04-03-2024 04:22 AM - edited 04-03-2024 04:22 AM
04-03-2024 07:01 AM
I have the string "1245; In#111111; testing, release" and my output should be "11169"
Hi @chandan1048 just wanted to know
input: "1245; In#111111; testing, release" and output: "11169" is that my understanding correct?