Wildcard in the first section of GL code

SOLVED

Dear Friend, 

My company are using a several-section numbering for GL code and i would like to know how to wildcard the first part of GL code?

For example, GL code, 100-02-03,101-02-04,102-02-05, 102-03-01 etc. if i like to use wildcard in the first section of the code(100,101,102) to sum up all GL with the 02 in the second section into one report line, that is sum-up=100-02-03 +101-02-04 +102-02-05. Anybody can give me help?

Thank you very much!

Frank