开发者

How to split below string in java String str="/10100002630023585/SIMA xxxCOMMERCIAL BANK OF SYRIADAMASCUS BRANCH N. 6" [closed]

开发者 https://www.devze.com 2022-12-07 18:51 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 1 hour ago.

Improve this question
String 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消