Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Split a String (https://www.askmehelpdesk.com/showthread.php?t=534564)

  • Dec 14, 2010, 04:56 AM
    Venkata.karri
    Split a String
    I am having a string like
    "Line:123;1335;3254546;Error:something
    150;0-334345;Base;0
    >>>>>
    Line:1223;13335;924546;Error:something
    150;0-334345;Base;0
    >>>>>
    Line:123;1335;3254546;Error:something
    150;0-334345;Base;-1345
    >>>>>
    Line:123;1335;3254546;Error:something
    150;0-334345;Base;0.1123
    >>>>>
    Line:111;133151;3246;Error:something
    150;0-334345;Base;0
    >>>>>
    Line:123;1335;3254546;Error:something
    150;0-334345;Base;7876
    >>>>>
    Line:1;15;4546;Error:something
    150;0-334345;Base;0
    >>>>>"


    I want to split above string with "Base;"+some value or string. But it is not "Base;0"

  • All times are GMT -7. The time now is 10:39 AM.