fork download
  1. import re
  2. buffer = 'my_path: any_suffix'
  3. share_path = '\\\\server\\final'
  4. buffer = re.sub('my_path:.*', r'my_path: {}'.format(share_path.replace("\\", "\\\\")), buffer)
  5. print(buffer)
Success #stdin #stdout 0.03s 9552KB
stdin
Standard input is empty
stdout
my_path: \\server\final