I have two input data documents will over 10,000 lines each of which is generated by a separate program and am trying to join the two by reference numbers. However there are slight differences in the reference numbers between the two systems due to how they are input. For example Program A might have FGRT102 and Program B might have FGRT102$ with the only difference being the $ at the end. To add to the difficulty, some reference numbers are 9 digits while others might be only 5 or up to 12. Is there any way to join these?