How can I create a regex to match between two characters inclusively?
From the string "bar x12y bar x30y foo" , I want to get x12y and x30y. I tried following
re.findall( "x(.*?)y", "bar x12y bar x30y foo")
and I get 12 and 30, but I would like to include x and y too, how can I do that?