Adding regex funcition to filter links