Simple regex library