Assuming creditnote30days is required, the following result was found.
I can remove the letters with removeAllAlpha(): v_PaymentTermsAlphaNum = v_PaymentTerms.getAlphaNumeric(); // yields CreditNote30Days vPaymentTermsNum = v_PaymentTermsAlphaNum.removeAllAlpha() // yields 30 But just to demo a regex and a one liner,...