use regex to parse requirements lines