Hi,
I have a string that can be passed through in various different formats:
"CR 123456 DB 654321 EUR"
" CR 123456 DB 654321 EUR "
"DR123456CR654321"
"DR 123456 CR 654321 GBP"
" DR 123456 CR654321 GBP "
etc etc
I am basically looking to pull out the 6 digit DR number and 6 digit CR number from the strings regardless of the passed in format.
So I would have something like GetCreditAccount = "123456" and GetDebitAccount = "654321"
Is anyone able to help?
Thanks
Bookmarks