Search bar logic issues

I am using a URL lookup for search.
It appears search is exact match or within not contains

Use case:
User parameters make the search terms dynamic

the issue I have is the AirTable value is
123.com

Searches like
123.com?p=1
123.com?p=2
123.com?p=3
don’t match.

Any thoughts? Any way to strip “?” and everything after it?
Another job for javascript?

TIA

@aj_martin could you pls share the real page we can test too ? if not public feel free to DM