import rea = "root/master/sensors//sensor1/value"print re.split(r"\b/", a)
Standard input is empty
['root', 'master', 'sensors', '/sensor1', 'value']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!