import rerx = re.compile(r"\bvalue=[^;]*")s = "$%$%&^(&value=xxx;$%^$%^$&^%^*value=yyy;%$#^%"res = rx.findall(s)print(res)
Standard input is empty
['value=xxx', 'value=yyy']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!