How to split words alone from text ?

how to split the text from a text file even with out the special characters to be stored to DB.I have seperated words using split.but it is having special charecters. is there any option with split to give special characters too as delimiters (i mean multilple delimiters).
Or any other way to get the words and integers alone?

gs_ravishankar wrote:
i think his problem is he has a file which has some text row wise, this text contains different special characters.
and his job is to read the text from the file and remove all special characters in the text and store this string in DB.
if this is the case,
i would suggest to get the ascii value range of all special characters and then write a condition for it.
may be something like this
if(text.chatAt(i) >= 12 && text.charAt(i) <= 45)
text.replace();Jeebus, have you ever heard of regular expressions?

Similar Messages

  • Re: How to split audio alone from a video file.

    After have configured the processor and before calling the realize method you have to setEnabled(False) the video track.
    Processor proc = ....
    proc.configure();.....
    //if the video track is the second:
    proc.getTrackControl()[1].setEnabled(false);
    proc.realize()....
    In this way, in the multiplexing phase, the video track will be ignored.

    Due to DRM, you cannot burn purchased videos, except for backup on Data CD/DVD.
    The only way to separate the audio is to use a capture application like Wiretap Pro or Audio Hijack (Pro). Latest versions can be found on versiontracker.com.
    Hope this helps.
    M

  • How to split words in two arrays depending of the first letter.

    Yes, how to split words in two arrays depending of the first letter.
    I have a string array with some words, and I need to separe this array into two differents string arrays depending of the first letter:
    if the word starts in A to M the word goes to array Words_AM;
    if the word starts in N to Z the word goes to array Words_NZ;
    Now I'm doing the next:
    if ((ArrayWord.charAt(0))<='a') && (ArrayWord.charAt(0)>='m'))                                        {                                                                                          
    Words_AM]=ArrayWord;
    else
    Words_NZ[i]]=ArrayWord;
    But doesn't work.
    Any solution?
    Best wishes.

    Yes , that's true. But also I have to change the <='a' to <'a', because of with first option didn't selecting the a letter.
    But with z letter, doing the same before, doens't run.
    if ((ArrayWord.charAt(0))<'a') || (ArrayWord.charAt(0)>='m'))
       Words_NZ]=ArrayWord;
    else
    if ((ArrayWord.charAt(0))<='n') || (ArrayWord.charAt(0)>'z')) Words_AM[i]]=ArrayWord;
    Regards ;)

  • How to count words in a text ?

    Hi all,
    can anyone show me how to count the number of words in a text.
    thank in advandce,
    Toan.

    Hi,
    Are you reading the text from a file or is it stored in a string buffer?
    The best way would be to use a StringTokenizer assuming that all your words are separated by a space ' ' you could use that as your delimiter.
    Something like..
    String text = "This is just a bunch of text stored as a string.";
    StringTokenizer words = new StringTokenizer( text, " ", false );
    int numberOfWords = words.countTokens();I hope that helps,
    .kim

  • How to build tag cloud from text document

    Hi,
    I want to build tag cloud from text documents.
    The text dcouments has several lines of sentence.
    The tag shows long sentense, not key words.
    Please let me know how to build.
    And Can I use CAS or text enrichment?
    Thank you very much.
    SWKO

    Hi,
    You need to extract salient terms (e.g. people or product names) from your text documents by using the text enrichment or the text tagger component.
    This step will generate new attributes, which can be used in your tag cloud.
    Mathias

  • How to find largest number from text file

    I am using the "Read from text file" block to read the data from my .txt file into labview.  It is now in string format.  I have many numbers in the file.  
    For example:
    0.45
    0.35
    0.12
    1.354
    1.56
    2.89
    5.89
    0.56
    That is what a text file might look like.  I want to find which of these numbers is largest, and do calculations with that number.  I am having trouble with strings/number formats/arrays, etc.  Thanks
    Solved!
    Go to Solution.

    The spreadsheet functions and VIs typically work on strings representing numbers separated by delimiters.  This is a typical way to save a "spreadsheet" (of numbers) to a text file, for example .csv files.  These are quite versatile and powerful functions.  Spend a bit of time becoming familiar with them because you may find yourself using them a lot.
    Lynn

  • How to generate Word document from JSP ?

    Hi,
    I want to generate Word documnet from JSP. I am using Neva objects to generate Word document. Now my problem is Word doc generation code works alright as a Java application but when I place that piece of code in a JSP bean it throws an exception. The reason seems to be unavailibility of DLLs and other files of Neva in Tomcat environment. I do not want to use other complex packages like JIntegra, I would prefer any freeware solution. There is not much info. about Word document generation on POI project in Jakarta site.
    Could anyone suggest way out ? Any Java examples doing the same would be of great help.
    Thanks,
    Akash

    Hi Saurabh,
    Thanks for the reply.
    I have tried that too. Problem with that solution is that if you have used CSS in your JSP code MS word does not understand it and generates word doc which is not the same as HTML which JSP otherwise would have generated.
    Akash

  • How to open word doc. from forms 10g

    hi all
    i am trying to open word doc. from forms 10g using ole2.
    but it is not working.
    basiccaly this command is not working
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    can anybody help
    thanx

    I found this searching this forum and it works..however, my issue is to open up Microsoft Word passing in data from a query.
    I am working on Forms 10g
    DECLARE AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\winword.exe C:\test.doc',
    DDE.APP_MODE_NORMAL);
    END;

  • How do I block people from texting me in "iMessage" / "Messages" on the iPad?

    AARRGGGGHHHH!!
    People are "texting" me on my iPad and I can't make it stop. HELP!!
    I can't believe ... I'm absolutely dumb-founded ... that Apple provides no way to block harassing users. This is NOT related to a wireless/cellular carrier, this is on my wifi-only iPad.

    You really have to wonder why the feature of blocking someone is not available.  It would be simple to implement.  Harrassing text messages, imessages, whatever you want to call them give an abuser a way to contact someone who does not want any contact.  This can result in psychological damage, even in some cases suicide.  If I am receiving unwanted messages from someone, I don't see why I can't just hit a button that says block.  The message then can be diverted to a folder, and if I want to unblock them I should be allowed.  There is not one reason I can imagine why I should not have this power.  It's ridiculous and unfortunate that in this age of bullying and stalking, we aren't allowed this modicum of control over our privacy.  So just when you think you have forgotten someone, or someone you love has finally removed an abusive person from their lives and moved on, all that person has to do is suddenly decide to text you day and night so that you cannot do anything but think about them.  Why oh why is there no block messages from this person button as there is in virtually every social networking website?  I am flabbergasted.  And of course if you have a data plan and someone wants to send you spam, they can actually eat into your data usage against your will.  I have to deny my family the ability to send me iMessages by completely disabling it because one nutcase won't leave me alone?  Again, where is our control over our privacy?  I'm frustrated over this issue, and after seeing what happened to Amanda Todd I don't see why it's not mandatory that this feature be added to every instant messaging platform.  "Block User"  I'm completely blown away now that I've researched this issue and I hope other people rally behind a change.  How hard would it be for a 45kb update to iMessage with the ability to block users?  Someday Apple is going to get sued when something terrible happens all because they refused to listen to reason.  We need cotrol of our lives, and especially where teenagers are concerned.  They need to be able to block unwanted attention from people who found a way into their personal lives.  Go to youtube and look up Amanda Todd.  It's tragic and Apple is going to do nothing about it.  Anybody who is living through this sort of nightmare knows how insane it is that we cannot simply hit "block user".  I also am dumbfounded!

  • How to extract word coordinates from PDF using vc++6.0

    In sdk,i just know how to get coordinate from pdf using javascript,and it will be completed use vb.but i dont know how to get the coordinate througt vc++6.0.anyone can help me?
    thank you advance!

    PDEWordFinder is the usual method for getting words and co-ordinates.
    PDFEdit is not usually used, it is not suitable for getting text.
    It is very hard work to make the two worlds work together (e.g. to
    edit text you find).
    Aandi Inston

  • How to make words in a text field change color in play mode by clicking on them?

    I have a text field on a slide, wanting to change the color of certain words randomly by clicking on them in play mode. I dont know what word in what order will be mentioned by the audience, so I can not set a fixed order in advance.
    Any help is appreciated.
    Thanks a lot.

    create a slide with all the text boxes in place
    duplicate the slide as many times as you have text boxes you want to change colour
    on the second slide, change the colour of one of the text boxes as required
    on the first slide, select one of the text boxes
    open the inspector:     Inspector > Hyperlink >
               enable as hyperlink > link to slide > click slide button > select the correct slide from the drop down menu
    in play mode, clicking on the hyperlink will display the appropriate slide with that text changing colour
    repeate the process for each text box

  • How to change column "Date" from "Text" to "Date-Time" in Document Library.

    How to change column name "Date" from "Single line of Text" to "Date and Time" in Document Library.

    Hi,
    If you would change column type, you might need to re-create column.
    If you would like a text column to display in date format, you could refer to the links below:
    http://sharepoint.stackexchange.com/questions/45774/how-to-convert-date-field-in-single-line-of-text-using-calculated-columns
    http://yasuanantha.blogspot.com/2008/06/to-convert-text-column-to-date-column.html
    Regards,
    Rebecca Tu
    TechNet Community Support

  • What is a "short code" and how do I stop them from texting me?

    I started getting texts from what is apparently a short code in December.  Now I am getting them daily.
    I really need this to stop.  And yes, I tried replying "stop" and that hasn't helped.

    This sounds as if it is related to an app you had installed and then un-installed but are still receiving push notifications. This is sometimes how apps are able to get push notifications for their apps. The app signs your phone up for texting notifications to let the app know when there are updates, such as posts or status updates. Sometimes when the app is un-installed, it does not correctly remove the notification procedure. Sometimes the app does not correctly intercept the text which is what it is supposed to do before you get the notification that you have a new text. These do not normally show up in your text log and you are not charged for them.
    You may have to call CS to have this stopped. You can also check online for other methods as one example of a quick google search for "short code 6250"

  • How to plot a graph from text file?

    This is driving me nuts!
    I would like to plot a list of numbers in a text file to a graph. Each munber is on a new line, like this -
    345
    356
    378
    379
    345
    etc.
    I managed to import the file and split it with the 'Spreadsheet to array' function but can't get much further than that.
    Help would be much appriciated.
    Ben H

    You just need to use the Read From Spreadsheet function and wire a 'True' to the transpose input. Wire the 1D array output to a graph.
    Message Edited by Dennis Knutson on 10-20-2006 12:40 PM
    Attachments:
    Read From Spreadsheet.PNG ‏28 KB

  • How to split the string from character position.

    HI ALL,
    I need to split the string like this.
    example:
    String = "HelloWorld"
    mid("HelloWorld", 2, 5);
    it should print   "ello"
    menas mid is functiuon it will split "HelloWorld" from 2nd character to 5th character and prints "ello".
    This one how to do in labview.
    Regards
    Punith

    String Subset is the function you are looking for.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • I-Cal: I need to grant administrative access to my assistant...

    I need to grant administrative access to my assistant so that she can make scheduling edits to my i-Cal.  I still need to have full administrative access to the calendar as well.  How does one grant dual access?

  • Graphical screen painter Not working

    Hi: When I am trying to access Graphical screen Painter in the transaction SE51,an error message is getting displayed with text "No response from graphical screen painter-exiting". And Alpha numeric editor is getting opened instead of GUI Editor. Can

  • BAPI/RFC for WIP values

    Hi all, I would like to show production order WIP values in an external system dashboard. Is any BAPI/RFC/IDoc available to fetch the data from SAP? If not, please let me know corresponding table to view the data in SAP? Thanks Guru

  • Strange message when entering the Testing subforum

    As noted by Somali.Pirates in his thread "Hello Claudio", when one enters the Testing subforum, one gets a strange message. This is the version I get in Explorer11/Win7: This happens to me in IE/Win, Firefox/Mac and Safari/Mac, but not in Chrome/Win.

  • PR1.1 upgrade finally came in Iceland (18.12.11).....

    Finally when I hit refresh updates yesterday it came after very long wait... was little over 200 mb... installed good,,, but first 30 minutes after update camera was very sluggish and phone was a little slow... camera told it was not working when I t