finalized unit4, namely regex stuff