fork(2) download
  1. import re
  2. strs = ['options={}, params={vector_name=get_x, default_like_count=2, seeting_id=1200, system=0 back', 'literal options={}, params={setting_id=1200, seed_val=22, system=0, vector_name=get_Z foobar}', 'mystring3 = "params={seed_rand=1200, seed_val=22, system=0, vector_name=corodinate2, tt=lly}' ]
  3. rx = re.compile(r'vector_name=(\w+)')
  4. for s in strs:
  5. m = rx.search(s)
  6. if m:
  7. print(m.group(1))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
get_x
get_Z
corodinate2