use regex to parse requirements