fork(2) download
  1. import re
  2. my_regex = re.compile(r'\[([^][]+)\]')
  3. print(my_regex.findall('[xy][abc]'))
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
['xy', 'abc']