My token value is "foo-29", but i want to search only "foo"....any one
Define an eval-based macro that performs a replace() as you need.
replace()