Add wild card values to query range

Hi All,

I need to find dimensions based on the wild card values( ex : 1*,10…50,!20). How can I add this value to query range and find the dimension record ?

Regards,

Raghavendra.