Wild card or pattern in Kibana query?

Hi,
I am creating linchart in Kibana for some URLs. There are few URLs like:
/myApplication/v2.0/card-history/9999-00/
/myApplication//v2.0/card-history/checkcardexist/9999-00?query
9999-00 is the card number. When I have to add filter to the graph, I face difficulty.

I can say message:" /myApplication/v2.0/card-history/" it gives results for second query as well because both queries are same till 'card-history' . How can I differentiate both queries without hard coding the number?
Is there any way I can put some rege-ex or pattern or wild card in query?

br,
Sunil

Elasticsearch works on analyzers and tokenizers. If you're wanting to tokenize paths for searching I would suggest taking a look at the path_hierarchy tokenizer