Inserted some regular expressions in filtering

Filter, ref, alt, id now admit regular expressions.