Regular expressions can be used in both the community-filter and AS-path-filter to match the attributes for route filtering.