import rem = re.search(r"(?<!\s)/(?![^\s.])", "Foo /markup/ bar")if m: print(f'{m.group()} found at {m.start()}')
Standard input is empty
/ found at 11
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!