Debian Codegraph @

format_regex.py

raw symbols SCIP
1 #!/usr/bin/env python
2 from __future__ import print_function
3
4 import sys
5
6 a = sys.argv[1]
7
8 while len(a) > 62:
9 b, a = a[:62], a[62:]
10 while b.endswith("\\"):
11 b = b[:-1]
12 a = "\\" + a
13 print("r'%s'" % (b,))
14 print("r'%s'" % (a,))