开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜