I simply want to strip the substrings "B1", "B2", "B3", etc. from the another string when they appear at the END of that string (they won't always be there). The rest of the strings will always be digits. (These are patent numbers.) In other words, the whole strings will look like:
7334235B2
7334221
7442351B1
and so on. I want to strip off the Bn from the end, and I can't see what the expressions in sandr should be.
Thanks in advance.
7334235B2
7334221
7442351B1
and so on. I want to strip off the Bn from the end, and I can't see what the expressions in sandr should be.
Thanks in advance.