fork download
  1. import re
  2. a = "root/master/sensors//sensor1/value"
  3. print re.split(r"\b/", a)
  4.  
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
['root', 'master', 'sensors', '/sensor1', 'value']