fork(1) download
  1. import re
  2.  
  3. matches = re.search("a=(\d+(?:\.\d+)?)", "var k = 2;var a; a=46")
  4. print(matches.group(1))
  5. # your code goes here
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
46