Good day all,

I have a string say 'the code of the safe is x/o 123456 can you open it'

My challenge is to split the string into 3 parts
'the code of the safe is '
'x/o 123456'
' can you open it'

The middle part could also be 'X\o 147856783' or x \ o 12756', this slight variations but always in the form of 'x' followed by as '\' followed by a 'o' and then a number string.

Any idea on how to do this?

thanks all