How to split intiger and string

String str="abc1,ss10";
String strArr[] = str.split(",");
here i want to split string and intigers separatelly, for example 'abc1'
i want to split this...i want to display only charecters.....
plz help me

You would probably need some kind of regular expression to do that. But it really isn't a JavaMail question, is it? You would get a much better answer if you posted the question in the Java Programming forum.

Similar Messages

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • How to split left and right sound signal from SI READ Stereo?

    How to split left and right sound signal from SI READ Stereo?
    I want to display the left and right sound signal in two graph separately,what shall I do?
    That is how to split 2D arry to two 1D arry?

    Hello,
    Here's another trick...although the "Index Array" suggestion will work, you should investigate using the "Delete from Array" function...you can tell it to delete one of the columns (or rows), leaving one column (or row)...the function will output both the resulting array AND the deleted array, which happens to be the other row/column...this method might not be as intuitive, but it only makes one copy of data in memory, while the Index Array method makes two copies.
    I hope this suggestion helps. I only found out about this trick with "Delete from Array" the other day.
    Have a great weekend!
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How to split a delimited string into an array...

    I have a delimited string coming in to a stored procedure (SP) for vb.net that needs to be parsed/converted into multi-dimensional arrays. The reason I am using delimited string because I do not know how to pass arrays to oracle SP from vb.net using ODP or MPO (Microsoft's Provider for Oracle).
    My delimited string looks something like this: "level1_1|level2_1:level3_1;level3_2|level2_2:level3_1;level3_2~Level1_2|level2_2:level3_1"
    So, its going to be 3d array. I would greatly appreciate if anyone could help me solving this puzzle. Any examples would be a great help.
    Thanks for everything in advance,
    Vincent

    Hi Andrew,
    I appreciate your response. Currently I use "Microsoft provider for Oracle" to connect to Oracle Database because when I started with my application there wasn't ODP (Oracle Data Provider for .Net) available. So, I used Microsoft provider and still using it.
    I know how to use arrays in .Net but the problem is I can not find the Oracle Type to pass the array to Oralce Stored Procedure using this provider.
    It would be very helpful if someone shows me the syntax for both to receive from oracle and transport to Oracle. I haven't tried using ODP yet. May be now its the time to see how it works.
    And of course, your link was very helpful but I am already doing that (which is very slow for multi-dimentional array). So, I thought there might be a built in function in oracle which does that. Because most of the programming languages does have built in function for this conversion. for example: Split() in vb, java, javascript etc.
    Anyway, if anyone finds any clues as to how to pass milti-dimentional arrays from .Net (microsoft) to oracle stored procedure please, please let me know how to do that.
    -Vincent

  • How to Plot number and string in one row (data logger counter via MODBUS) ?

    hi all i made data log quantity using Digital Counter via modbus (RS-485) to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Solved!
    Go to Solution.
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Hi rhiesnand,
    right now you add 2 new rows to your array.
    The solution is to concatenate both row parts to one bigger 1D array before adding that array as new row to your 2D array!
    Like this:
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to split video and extracted audio clip at same time?

    I imported 10 min of DV from my Sony HC96 camcorder to iMovie 6.
    I selected a video clip and split it using cmd-T but the extracted audio clip below it did not split. How can I split both the video and underlying audio clip so I can drag the edge of the new video clip for editing by direct trimming and keep the audio dialogue in sync. I have already gotten the clip volume levels right in the extracted audio.
    This seems pretty basic editing but I must be missing something.
    thanks, ralph
    1.67 GHz 17" PB, PowerMac Dual 2.5 & 23" Cinema Display   Mac OS X (10.4.8)   Airport Extreme Base Station and Airport Express

    Thanks, Sue. Let me see that I have this right. I split the video then the audio. I then selected and trimmed the video to the remove the 10-15 seconds I wanted to remove. To keep the dialogue in sync with the speaker's lips, I then selected and trimmed the audio to the same time as I trimmed the video. Then I dragged the audio clip back up to the new start of the trimmed video clip. I did this and the dialogue and lips seem to be in sync.
    I guess originally I had looked for a solution where I cut both clips at the same time and trimming one trimmed the other. But now I see I just need to do them separately. Thanks for the help, Sue!
    ralph
    Hi Ralph:
    You can't do both at the same time, but you can do
    them one right after the other. Highlight the audio
    and split it after you split the video and be sure to
    keep the playhead in the same position.
    Sue
    1.67 GHz 17" PB, PowerMac Dual 2.5 & 23" Cinema Display   Mac OS X (10.4.8)   Airport Extreme Base Station and Airport Express

  • How to split comma delimited string?

    Hi,
    I have a parameter called Id in my SP which will be of nvarchar data type and i'm going to get the multiple ids at a time seperated by commas in that parameter from the application. Now my requirement is to update a table with these comma seperated ids in seperate rows.
    For example, if i have 2 parameters called Id1 and Id2. Id1 will contain only one value and will be of int data type and Id2 will be of nvarchar data type as i can get multiple ids delimited by a comma from the application. Suppose Id1 = 1 and Id2 = '1,2,3,4'. Then I have to update id2 in the tables seperately like wherever Id1 is '1' i need to update Id2 column for 4 rows with the value 1, 2, 3, 4 respectively in different rows.
    Could you please tell me how can i do this in T-SQL? How can i split the data of parameter Id2 in 4 different rows?
    Please let me know if you did not understand the question.
    Thanks,
    Deepti

     deeptideshpande wrote:
    Hi,
    I got a similar function which is like this:
    CREATE FUNCTION dbo.fnSplit(
    @sInputList VARCHAR(8000) -- List of delimited items
    , @sDelimiter VARCHAR(8000) = ',' -- delimiter that separates items
    ) RETURNS @List TABLE (item VARCHAR(8000))
    BEGIN
    DECLARE @sItem VARCHAR(8000)
    WHILE CHARINDEX(@sDelimiter,@sInputList,0) <> 0
    BEGIN
    SELECT
    @sItem=RTRIM(LTRIM(SUBSTRING(@sInputList,1,CHARINDEX(@sDelimiter,@sInputList,0)-1))),
    @sInputList=RTRIM(LTRIM(SUBSTRING(@sInputList,CHARINDEX(@sDelimiter,@sInputList,0)+LEN(@sDelimiter),LEN(@sInputList))))
    IF LEN(@sItem) > 0
    INSERT INTO @List SELECT @sItem
    END
    IF LEN(@sInputList) > 0
    INSERT INTO @List SELECT @sInputList -- Put the last item in
    RETURN
    END
    GO
    Now when i use this in my select statement, i get data in a tabular structure as shown below:
    select
    from dbo.fnSplit('1,22,333,444,,5555,666',
    Results
    Item
    1
    22
    333
    444
    5555
    666
    Now my requirement is to insert this value in a table which has 2 columns ID1 and ID2.
    At any point of time ID1 will be an int value(only one id in that parameter) and ID2 can have multiple ids delimited by comma. With the help of above split function i can split values of ID2 into 6 different ids but i need to insert the table
    in the following way:
    ID1     ID2
    1        1
    1        22
    1        333
    1        444
    1        5555
    1        666
    How can i insert the data in the above mentioned fashion.
    Thanks,
    Deepti
    Like this:
    Code Snippet
    select 1 as id,* from dbo.fnSplit('1,22,333,444,,5555,666', ',')
    Great!!!! Wonderfull!!!... Thanks a lot.

  • How to split a delimited string into rows

    Hi Everyone,
    I have a field in my EMPLOYEE table named "OLD_USER_IDS" which stores all the old system ID's that the employee was once assigned to. This field is comma separated like so: "USERID1,USERID2,USERID3". My question is: how can I write a SELECT query that splits each individual User ID into its own row?
    For example:
    EMP_ID USER_ID
    10 USERID1
    10 USERID2
    12 USERID3
    15 USERID4
    15 USERID5
    15 USERID6
    Thank You
    -Sam

    I think you should search this forum first for similar questions. I keep track of some interesting stuffs posted in this forum in a file, and from that
    WITH t AS  (SELECT 'USER1,USER2,USER3' str FROM DUAL
    select substr(str,
                        decode(level,
                               1,
                               1,
                               instr(str, ',', 1, level - 1) + 1),
                        decode(instr(str, ',', 1, level),
                               0,
                               length(str),
                               instr(str, ',', 1, level) -
                               decode(level,
                                      1,
                                      0,
                                      instr(str, ',', 1, level - 1)) - 1)) the_value
            from (select str from t)
          connect by level <=
                     length(str) - length(replace(str, ',')) + 1;

  • How to split Inventory and customs during Goods Issue

    Hi Friends,
    We create an Intercompany PO and do a GR against it. It creates an automatic GI. The Material document posted during GI is Dr. COGS account and Cr. Inventory account. The Inventory account consists of stock value + customs duty paid during GR.  Now we want to split this inventory and customs separately while posting the GI.
    For Example: Stock value = $100, Customs duty $10. Then total inventory value is $110.
    Current postings
    Dr. COGS      $110
    Cr. Invenotry  $110
    To be postings
    Dr. COGS          $100
    Dr. Other Costs $ 10
    Cr. Inventory      $100
    Cr. Customs       $ 10
    Please share any inputs to achieve the required postings.
    Regards
    Surya

    Hi
    In our company we have the following cycle if it can gives you any idea:
    inventory purchase with custom/ freight cost
    Dr. Inventory                         1150
         Cr. GR-IR                         1000
         Cr. Custom for Inventory    100
         Cr. Freight for Inventory       50
    While Goods issue to production :
    Dr. COGS                1150
         Cr. Inventory        1150
    Regards
    Mahmoud El Nady

  • How to split path and filename (file is on application server)

    Searching this forum I found a couple of FM's that apparently only worked for PC files.  Is there a parser function for files w/ the Unix naming convention?

    You could parse it yourself...
    DATA: filepath TYPE char255 VALUE '/usr/<sys_id>/sap/tmp/filename.txt'.
    DATA: path TYPE char255.
    DATA: file TYPE char255.
    DEFINE macro_reverse_string.
      call function 'STRING_REVERSE'
        exporting
          string  = &1
          lang    = sy-langu
        importing
          rstring = &1.
    END-OF-DEFINITION.
    macro_reverse_string filepath.
    SPLIT filepath AT '/' INTO file path.
    macro_reverse_string filepath.
    macro_reverse_string file.
    shift path right by 1 places. path(1) = '/'.
    macro_reverse_string path.
    WRITE:/ filepath.
    WRITE:/ path.
    WRITE:/ file.
    Regards,
    Rich Heilman

  • Have discovered how to split visual and audio tracks. However the cut away only seems to work with still images from iPhoto!

    trying to cut away from one video clip to a second one, while keeping the original sound track, works with still images imported from iPhoto, but cant get the video to drag/drop. please help thanks

    simonjacobson wrote:
    Drag clip over target, green plus sign appears.........clip appears at front of video, no menu option appears,
    OK that sounds correct. Just to clarify, when the sign appears, as you release the mouse button (or whatever you are using), no menu pops up but the clip immediately positions itself:
    at the front of the target clip, OR
    at the very beginning of your project
    Not sure where I'm heading here, just trying to get the complete picture.
    I di it once, but not again, do i need to double click/right click or something?
    No, there is no double-click or right-click involved at all. Just drag and drop, then select from the pop-up menu. You should be able to repeat this with no issues. I've also tested dropping video onto a still picture - the cutaway works on that as well.
    Something is definitely not working correctly - strange! Quit iMovie, then try deleting the preference file as I described in my last post. Quitting and relaunching iMovie might even fix it. Also, try restarting your Mac - that sometimes helps.
    John

  • Splitting a concatenated string to multiple cells in a row in BIP Reports

    Hello Experts,
    Let me how to split a concatenated string into multiple cells in BIP reports rtf.
    Ex:
    string: acg;ghdf;tesrlkjj;hvfffda
    has to placed in multiple cells like
    string1: acg
    string2: ghdf
    string3: tesrlkjj
    string4: hvfffda
    Appreciate your quick reply.
    Please drop in the pseudo code.
    Thanks & Regards
    Syed

    The report is based on a standard sql query such as
    select item1, item2, item3, item4, item5, item6, item7
    from mytable
    order by item1Wanted to put that in as I am not using an interactive report.
    Thanks
    Wally

  • Splitting, Staging and Sending

    HI,
    I am trying to create a solution where I am looking to Split one xml into three xmls using Multimapping. The three xmls are like the staging tables. These three xmls then will be transformed into three output xmls and send to three different locations in File Directory.
    Scenario:
                                          -----> Staging xml    -------> Output Message (xml)
    Third party sysytem (xml) ---> SAP PI -----> Staging xml    -------> Output Message (xml)
                                           -----> Staging xml    -------> Output Message (xml)
    I am looking for a solution without BPM.
    Regards,
    Rahul

    Hi Rahul,
    refer the below link which gives info about how to split messages and creating separate files in their respective target file folders.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0b6bb9d-7689-2c10-52a7-c3bd341d4e5f?quicklink=index&overridelayout=true
    Thanks

  • How to Split the string using Substr and instr using loop condition

    Hi every body,
    I have below requirement.
    I need to split the string and append with single quotes('') followed by , (comma) and reassign entire values into another variable. so that i can use it where clause of update statement
    for example I am reciveing value as follows
    ALN varchar2(2000):=(12ERE-3MT-4Y,4IT-5O-SD,OP-K5-456,P04-SFS9-098,90P-SSF-334,3434-KJ4-O28,AS3-SFS0-J33,989-3KL-3434);
    Note: In the above variable i see 8 transactions, where as in real scenario i donot how many transaction i may recive.
    after modification i need above transactions should in below format
    ALTR Varchar2(2000):=('12ERE-3MT-4Y','4IT-5O-SD','OP-K5-456','P04-SFS9-098','90P-SSF-334','3434-KJ4-O28','AS3-SFS0-J33','989-3KL-3434');
    kindly help how to use substr and instr in normal loop or for loop or while loop while modifying the above transactions.
    Please help me to sort out this issue.
    Many Thanks.
    Edited by: user627525 on Dec 15, 2011 11:49 AM

    Try this - may not be the best way but...:
    create or replace type myTableType as table of varchar2(255)
    declare
    v_array mytabletype;
    v_new_str varchar2(4000);
    function str2tbl
             (p_str   in varchar2,
              p_delim in varchar2 default '.')
             return      myTableType
        as
            l_str        long default p_str || p_delim;
             l_n        number;
             l_data     myTableType := myTabletype();
        begin
            loop
                l_n := instr( l_str, p_delim );
                exit when (nvl(l_n,0) = 0);
                l_data.extend;
                l_data( l_data.count ) := ltrim(rtrim(substr(l_str,1,l_n-1)));
                l_str := substr( l_str, l_n+length(p_delim) );
            end loop;
            return l_data;
       end;
    begin
      v_array := str2tbl ('12ERE-3MT-4Y,4IT-5O-SD,OP-K5-456,P04-SFS9-098,90P-SSF-334,3434-KJ4-O28,AS3-SFS0-J33,989-3KL-3434', ',');
          FOR i IN 1 .. v_array.COUNT LOOP
             v_new_str := v_new_str || ''''||v_array(i)||'''' || ',';
          END LOOP;
       dbms_output.put_line(RTRIM(v_new_str, ','));
    end;  
    OUTPUT:
    =======
    '12ERE-3MT-4Y','4IT-5O-SD','OP-K5-456','P04-SFS9-098','90P-SSF-334','3434-KJ4-O28','AS3-SFS0-J33','989-3KL-3434'HTH
    Edited by: user130038 on Dec 15, 2011 12:11 PM

  • How to read each and every word from a string.

    Hi all,
       I have a string which is having many label numbers. if the string is lv_str, its value is like, 11111111111111##22222222222222##3333333333333.
    I need to move the values alone into internal table. each value should be updated as a single row into one internal table. How to read each and every word of the string and move to an internal table.
    the internal table should be like this.
    11111111111111
    22222222222222
    3333333333333
    Can any one give me a suggestion in this regard.
    POINTS PROMISED.
    Regards,
    Buvana

    Hi,
    If you know the format and length of the data
    Use split at '#' so that you will get the individual values.
    Thean append it to internal table.
    Reward iof helpful.

Maybe you are looking for

  • Peculiar case of GR posting

    HI I have tried posting the same problem but no one could answer, may be because I was not clear in asking my question ....this is the question and best possible way to ask  it... We have a particular requirement for a type of subcontracting process

  • IMac 17" G4 (Flat Panel) - Which Airport Card

    I have an iMac 17" G4 Flat Panel computer. The processor is 1.0 Ghz. I looked up on Apple's site which card it takes. This link is a bit confusing. It says the iMac G4 17" Flat Panel uses an original AirPort card, but then the next line says iMac 17"

  • GVRP not working on Cisco SG300-28

    I have three Cisco SG300-28 switches. I setup a test lab environment with a core (server) switch in Layer 3 mode and the rest are (clients) in Layer 2 mode. As I understand, these switches doesn't support VTP, only GVRP. And GVRP works the same with

  • Thai language for keyboard

    Hi, I want to be able to type Thai using my standard keyboard. Is there some software that I can download that will enable me to do this? Thanks

  • Internet Help Needed!

    My warranty just expired, and I am having trouble with my internet. I know it is not a router problem because the other computers in the home are not having difficulty. My computer will connect to the internet and then after a few minutes it goes off