How to split below string in java String str="/10100002630023585/SIMA xxxCOMMERCIAL BANK OF SYRIADAMASCUS BRANCH N. 6" [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 hour ago.
Improve this questionString str="/10100002630023585/SIMA xxxCOMMERCIAL BANK OF SYRIADAMASCUS BRANCH N. 6"
Here
- accountId = 101000232630023585
- beneficiary name = SIMA xxx (which is not fixed)
- Address = COMMERCIAL BANK OF SYRIA DAMASC开发者_StackOverflowUS BRANCH N. 6
I have used regular expression:
str.split(" ((?<=[a-zA-Z])(?=[0-9]))|((?<=[0-9])(?=[a-zA-Z]))");
but not getting proper splitting as address also contain alphabets. Is there any way to split string?
精彩评论