User Activity

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#","")