smart host filter regex

I’m trying to filter our Tier 1 RHEL servers on Ansible Tower smart inventory that have ip’s of 10.5.x.x, 10.50.x.x, and 10.51.x.x. Red Hat provided this syntax for smart host filter, name.regex:“^10.5[0-1]..$|^10.5..$”, but it did not work as I’m getting 'No records matched your search’ . I found out the variable for ip’s when I looked at the Details for a host in Ansible Tower is ip, so i replaced name.regex with ip.regex:“^10.5[0-1]..$|^10.5..$”, but I got error invalid quiery. Please advise.

I'm trying to filter our Tier 1 RHEL servers on Ansible Tower smart inventory that have ip's of 10.5.x.x, 10.50.x.x, and 10.51.x.x. Red Hat provided this syntax for smart host filter, name.regex:"^10\.5[0-1]\..*$|^10\.5\..*$", but it did not work as I'm getting 'No records matched your search’ . I found out the variable for ip's when I looked at the Details for a host in Ansible Tower is ip, so i replaced name.regex with ip.regex:"^10\.5[0-1]\..*$|^10\.5\..*$", but I got error invalid quiery. Please advise.

I think this would be a better question for the Ansible Users mailing
list as this list is meant for development related discussion.

https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information

-AdamM