updated the regex for filtering