import rep = re.compile(r'ORIG\s?:\s?/\s?([A-Z0-9]+)', re.IGNORECASE)test_str = "ORIG:/texthere"print re.search(p, test_str).group(1)
Standard input is empty
texthere
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!