# Filter name and suffix package on content selector

**URL:** <https://community.sonatype.com/t/filter-name-and-suffix-package-on-content-selector/11635>\
**Category:** Sonatype Nexus Repository\
**Tags:** content-selector\
**Created:** [November 20, 2023, 5:34pm UTC](https://community.sonatype.com/t/filter-name-and-suffix-package-on-content-selector/11635 "2023-11-20T17:34:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rambodras](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rambodras](https://community.sonatype.com/u/rambodras)\
**Post date:** [November 20, 2023, 5:34pm UTC](https://community.sonatype.com/t/filter-name-and-suffix-package-on-content-selector/11635/1 "2023-11-20T17:34:58Z")

</div>

I want to create content selector and filter based on name and suffix.  
for example:on following path  
[http://vault.centos.org/7.9.2009/os/Source/SPackages/nmap-6.40-19.el7.src.rpm](http://vault.centos.org/7.9.2009/os/Source/SPackages/nmap-6.40-19.el7.src.rpm)  
I want to create an expression in the content selector whose output is as follows:  
nmap-6.40-19.el7.src.rpm  
In other words, I want to create an expression that filters only based on the package name
