using regex and filter method