Find a word.. Help pleaseeeee

I want to find a word and located sentences in the file;
For example:
I love java. It is a programming language. Everybody loves Java.
Search:
Display:
I love java.
Everybody loves Java.

Mr.Ahliman wrote:
I want to find a word and located sentences in the file;Ok, good luck with that.
For example:
I love java. It is a programming language. Everybody loves Java.Not sure that is a good example.
Do you have a question?
BTW: Perhaps this should be in the New to Java forum?

Similar Messages

  • Need help: Cannot find Microsoft Word installed on your system.

    I am having issues trying to generate a pdf from a robohelp 7 html project.  Whenever I try to generate a pdf I get the error "Cannot find Microsoft Word installed on your system."
    I have tried to uninstall both Office (2003) and robohelp, re-installing office first and then robohelp, but it doesn't help.  Can anyone shed some light on this issue?

    Colum,
    Thanks for the reply, but it's Microsoft Office, not Open Office.
    I have read many threads here and tried most of the suggestions, up to and including:
    Uninstall/Reinstall of Office and RH 7
    Adjusting Macro security
    comparing registry entries
    There are others but I can't think of them all right now.  Point being, nothing has worked thus far.  I must admit this is fairly frustrating but I haven't given up yet.  Any more suggestions are welcome, and I will review the link you gave me just to make sure I cover all my bases.

  • Where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?

    In moving from XP to Windows 7, I opted for Thunderbird as email client in order to bypass Microsoft's hyper-intrusive Windows Live Mail (I used Outlook Express for years).
    I have a very complicated email structure, and it's taken me weeks (seriously) to learn how to replicate it in TBird. Now I'm trying to customize TBird further, but none of the TBird articles/forum Q&A's/Google searches address my questions.
    There is no live tech support for TBird, and I'm just about ready to leave it for good. However -- one last effort: where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?
    Thanks.

    I am no expert, but I don't know of any authoritative reference as to what elements of HTML and CSS are supported in Thunderbird. However, as I believe you appreciate, it's more than just what Thunderbird supports, but one must also think about what is likely to work in other email clients. Keep it simple. Avoid ancient deprecated tags that other email clients may not support, and for similar reasons, avoid cutting edge technology. Remember that recipients using tablets or smartphones won't appreciate large fancy email documents.
    The only thing ''guaranteed'' to work in email is plain text. ;-)
    If you haven't already discovered it, the Stationery add-on is designed specifically to support OE stationery in Thunderbird. Your existing stationery may "just work" in this add-on. It makes switching between various stationery templates much easier, but I'm not confident that it will affect interpretation of your CSS or HTML coding.
    Your code is at least clean and minimal. Most times my involvement with troublesome templates and signatures centres on the horrible bloat and mso custom code generated by Word or Outlook.
    Having said that, you and I are mortal enemies, as I don't have much patience with what you aspire to achieve. I specifically don't like background images, nor being obliged to suffer other folks' bizarre choice of typefaces and colours (but your simple 12pt black Tahoma is quite inoffensive. ;-) ) I'm of an age where my tolerance and eyesight are easily offended.
    Nonetheless, I'm intrigued by how to parse the tag for the background image, as it doesn't look like a legitimate pathname to a graphics file. Does the background image actually appear as required?

  • How to find a word with different font format (e.g. italic and regular in one word)

    Hi people,
    I need to find a word, prefferably using GREP or simple Find/Replace tool.
    Sometimes, when I get source text to paste into InDesign, some word's format is messed up. First letter is italic and rest is regular or otherwise (or any other font format). How can I find such words automatically. For example:
    Example
    would really appreciate any help.
    best regards
    JMG.

    Hi,
    If I had to do that, using Multi-Find/Change, I would play it like:
    With MFC, I create a set of the 2 regex. So, one click to fix your problem.

  • How do I find duplicate words in a Numbers spreadsheet?

    Hello, I've created my first document on Numbers and am trying to figure out how to find duplicate words. Ideally, a list of words that repeat in the document and how many times. Is this possible? Thank you in advance for the advice

    It's easy enough to find and count duplicate entries, especially if they are all in a single column, but if you want to count individual words within multi word entries, the problem is more complicated.
    Here's an example for the 'simple' case, using a familiar 155 word passage from English literature.
    The words in the passage are separated into a single line for each word, and stripped of all punctuation. This may be done in Pages, or in Text edit, or in pretty much any word processing software or text editor. Paste the passage into a WP or text document, then use the application's Find/Replace feature to replace all of the spaces with returns. I would also do a second pass replacing all double returns with single returns, then repeat that until Find/Replace reported replacing zero occurrences.
    Punctuation was stripped using Find/Replace
    The prepared list was pasted into column A of a Numbers table.
    Formulas:
    B2: =COUNTIF($A$1:A2,A2)
    C2: =IF(AND(B>1,B=COUNTIF($A,A2)),ROW()-1,999999)
    Fill both down their respective columns to the end of the table.
    The small table is inserted as a Basic table using the Tables button. It contains a Header row, but no Header columns.
    Formula:
    A2: =IFERROR(OFFSET(Table 1 :: $A$1,SMALL(Table 1 :: $C,ROW()-1),COLUMN()-1),"")
    Fill right into B2, then fill both down to the end of the table.
    Descriptions of the functions used, along with their syntax and at least one example of their use in a table are available in the Numbers '09 User Guide, which may be downloaded via the Help menu in Numbers.
    Regards,
    Barry
    PS: Regards to the late Mr. Shakespeare, and thank you for providing the text used.

  • How to finds specific words in each sentence?

    import java.io.*;
    import java.text.*;
    import java.util.*;
    public class FindingWordsSpecific {
         static String[] days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "every Tuesday"};
      public static void main( String args[] ) throws IOException {
               // the file must be called 'myfile.txt'
               String s = "myfile.txt";
               File f = new File(s);
               if (!f.exists())
                    System.out.println("\'" + s + "\' does not exit. Bye!");
                    return;
               BufferedReader inputFile = new BufferedReader(new FileReader(s));
               String line;
               int nLines = 0;
               while ((line = inputFile.readLine()) != null)
                    nLines++;
                   System.out.println(findTheIndex(line));     
               inputFile.close();
           public static String findTheIndex(String sentence){
                String result = "";
                String[] s = sentence.split("\\s");
              for (String s1: s){
                   for (String s2: days){
                        if (s1.equalsIgnoreCase(s2)) {
                             if(s2.matches("every Tuesday")){
                                             }else if (s2.matches("every Wednesday")){
                                              }What is wrong with it because I tried to find "every Tuesday" in
    myfile.txt: "Go fishing every Tuesday and every Wednesday"
    There is big problem with split statement because it takes each word not more than a word.
    I need to have "every Tuesday" not "Tuesday". How to make it correct codes?

    I am going to give you a picture of how the output will look.
    Here are two sentences from myfile.txt:
    Go fishing every Tuesday and every Wednesday
    Meet with research students on Thursday
    I need to read from myfile.txt and to find specific words in each sentences like this output:
    Every Tuesday : Go fishing
    Every Wednesday : Go fishing
    Thursday : Meet with research students
    Ok. make sense? Now I am trying to figure out how to find specific words in each sentence from myfile.txt.
    That is why I have difficult with the splits statement and loops. Like this:
           public static String findTheIndex(String sentence){
                String result = "";
                String[] s = sentence.split("\\s");
              for (String s1: s){
                   for (String s2: days){
                        if (s1.equalsIgnoreCase(s2)) {
                             if(s2.matches("every Tuesday")){
                             }else if(s2.matches("every Wednesday")){
                             }else if(s2.matches("Thursday")){
                             }else{
                                  System.out.println("That sentence is not working");
                return result;
      }So look at the "Thursday" it is working the output because I have split statement to give me only one word not more than
    a word in sentence. So there is big problem with more than a word in sentence like this "every Tuesday" and it won't work at all because of split. Could you please help me how to do that? I appreciated for that help. Thanks.

  • Grep to find any word NOT in quotes

    Hi
    Can someone help me with this grep
    I need to find all words that are NOT in quotation makrs
    For example:
    Hello and "Good Morning"
    I would want to find the words:
         Hello
         and
    but not the words:
         Good
         Morning
    I tried with lookahead and lookbehind like this:
    (?!=")\w+(?!")
    but it just selects one character less
    If anyone can help I'd really appreciate it
    Thanks in advance
    Davey

    Hey guys!
    Thanks a lot for your help!
    @Beginner_X
         Your first grep was almost perfect, however, it didnt find the first word of a story (since it didnt follow a space or a return)
         Your second post worked perfectly!! - Thanks a lot
    @csm_phil
         I was looking to select each word separately, not consecutive words - although this will also come in handy
         Your grep worked, however I had to add the question mark to make it ungreedy
         because if the sentence had 2 quoted words, it would select from the beginning of the line till the last quote
    @Laubender
         For some reason your grep is functioning just like mine - it finds the word Good and Morning
    Thanks again
    Davey

  • Cannot find Microsoft Word installed on your system

    Hi,
    Wonder if anyone can help...
    I just tried to generate my printed documentation in RoboHelp
    and everytime I try I get the error message 'Cannot find Microsoft
    Word installed on your system'.
    It is installed, and when I go to Tools > Options >
    Tool Locations you can see it is pointing to the right location
    (C:\Program Files\Microsoft Office\Office12\WINWORD.EXE).
    This is the first project I have done with RoboHelp 7.0 on
    Vista- does anyone have any ideas?
    Thanks

    First, thanks to Wkugelman for this new initiative. I think
    we are a big step nearer, but not quite there yet.
    Nitabeck wrote
    quote:
    If I manually type in the path to the shortcut, RoboHelp
    tells me the path is invalid.
    This happens to me on XP too, so there must be some other
    problem. I do have adminsistrator rights on this PC. Here's what I
    do
    1) Find WINWORD.EXE and create a shortcut to it on my
    desktop. I rename it to WINWORD.EXE
    2) In RH. Menu:Tools > Options > Tab:Tool Locations
    > Pane: HTML Editors
    3) Select the line Word 2003 and click the Edit... button to
    change the path
    4) I get a popup called HTML Editor with Word 2003 grayed out
    above, and a path selector text box below.
    5) Now it doesn't matter whether I use the path browser icon
    and navigate to my new shortcut, or whether I enter the path
    manually. When I click OK I get a popup saying the path is invalid
    or I return to the HTML Editor popup but the path to Word has not
    changed (it remains C:\Program Files\Microsoft
    Office\OFFICE11\WINWORD.EXE ).
    Notes: It doesn't matter whether the path is on C:\ where
    Program Files (with Office11 And Adobe Robohelp 7 reside), or on
    D:\ where my "My Documents" directory is with subdirectory My
    Robohelp projects.
    I have also played around with the two radio buttons at the
    bottom of the Tool Locations tab:
    * Auto-select editor and
    * Use default editor
    But to no avail. Can someone explain what these options
    change?
    If protections on the OFFICE11 directory or Winword
    executable are the problem, wouldn't it be simpler to loosen these
    so that RH can use it?

  • Cannot find Microsoft Word Installed on your system - RH10 - a solution

    I started receiving the error "Cannot find Microsoft Word Installed on your system" whenever I tried to generate printed documentation from RoboHelp 10. This occurred after I installed Open Office 3.4.1.
    Clicking the "Printed Documentation" option in the SSL pod generated the error. However, right-clicking on the "Printed Documentation" option, selecting "Properties", then clicking "Save and Generate" did work. Go figure.
    I am using Word 2007.
    All of these suggested solutions to resolve the problem didn't work, unfortunately.
    Uninstalling and reinstalling Open Office with the correct option selected for file associations as suggested here:
    http://www.grainge.org/pages/authoring/printing/print_issues.htm#other_issues
    Tried reinstalling the MPJ2DOC.DLL as suggested here:
    http://helpx.adobe.com/robohelp/kb/error-cannot-find-microsoft-word.html
    Tried all the suggestions here:
    http://forums.adobe.com/message/4173839
    Spent 2 hours with Adobe support (they were helpful but could not fix the problem) uninstalling and reinstalling RoboHelp, including reinstalling and registering the dll again.
    Finally I fixed the problem by following the simple solution here. I found that the problem was that the Word file associations were corrupt and you simply need to reregister word.
    http://www.word.mvps.org/FAQs/AppErr...gisterWord.htm
    Here's the solution in case the  link does not work:
    How to re-register Word when problems crop up opening files
    Article contributed by Cindy Meister
    If you find that Word files do not open in the desired version of Word when you double-click them in Windows Explorer, or that when opening them from the Desktop or Explorer, a series of messages appear claiming that the file cannot be opened, such as:
    “Cannot open C:\My”
    “Cannot open "Documents\The”
    “Cannot open "Test.doc"”
    .. you need to re-register Word.  To fix the problem:
    Word 97 and above
    Click Start | Run (bottom- left corner of your screen).
    In the “Open“ box, type:
    winword /rand press Enter. Note that there is a space before the forward slash
    Word 95
    Locate the file winword.reg on your system
    Double-click it to re-register Word
    Hope this helps anyone else who has struck this problem.
    Cheers Mark

    I am not surprised that the DLL is crashing your system. If you read the Knowledge Base item for that file it specifically refers to RoboHelp 9. Your first step is to restore the correct DLL for Rh10. I hope you backed it up.
    What is your operating system?
    Have you tried uninstalling and reinstalling?
    Is your Normal.dot file on your local drive or on a network.
    Are you generating the printed document to your local drive?
    At what point does the generation crash?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Finding a word within a string

    Hey everyone,
    Just having a little trouble with something.
    I'm trying to find a word -- that is, not a substring, an actual word as defined by the english language -- within a string.
    For example I don't want "hell" to be found in "hello".. only "hello" to be found.
    Currently i've got two strings, one is the sentance (String input), and one is the word to be found in the sentance (String word). I need the program to find the WORD, and then go back and search for the word again and again and again until it reaches the end of the string.
    This is what I've got thus far:
              for(i = 0; i < input.length(); i++)
                   // This statement checks the string "input" for the string "word" starting at offset 0 (as this is what the variable was first defined as)
                   if(input.indexOf(word, offset) >= 0)
                        // If it finds the word at all, this line increases the offset ahead of this word so it doesn't simply find the same word again
                        offset = offset + (input.indexOf(word)) + (word.length());
                        times++;
              }At the moment this searches for the sub-string, not the WORD which is what I would like it to do.
    What's the easiest way of going about this? I've been fiddling around trying to add extra sections to the if statement, for example
    if((input.indexOf(word, offset) >= 0) && (input.charAt(offset +1) == 32))(32 as in the ASCII character for a space, which would do what I wanted it to do)
    But I eventually get errors because at some stage or another the charAt is going to be higher than the actual length of the String. Plus, this only looks if there's a space next to the word - a word can be valid if it has a ! next to it for example, or a comma...
    Thanks for any help :)
    viddy

    I think there's a word boundary marker in regex. So it'd be "\\w+hello\\w+" or whatever the marker is, to be used with a Pattern instance.

  • How to use Class Pattern to find match word ?

    Hi All:
    Now I want find some words in a article . for example , I want to find a word ---"book" . For this purpose , I use java.util.regex.Pattern to do that . Following is my code
    String tmpStr = ".*?[\\W]+book[\\W]+.*?";                         
    Pattern p = Pattern.compile(tmpStr);
    Matcher m = p.matcher(testStr);                // assume testStr is the article
    while ( (m1.find()) ) {
             System.out.println("find");
    }                    However , this code only help me to find some like " book " , " book! " , " !book " . But I also want to find some like "book " or " book" , since there aren't space before book or no space after book . How can I correct my code to do that ?
    Thanks in advance

      String tmpStr = "\\bbook\\b";

  • Action that finds specified words and highlight the whole sentence or paragraph

    Hi All,
    I know a action file from Acrobat users group (http://acrobatusers.com/content/find-highlight-words-and-phrases) which find and highlight a set of words using Acrobat action. But, is this possible to modify the javascript to select and highlight the "whole sentence" of the word selected? I have no knowledge about javascript, but hope I can learn how to search a word and grab the sentence or even the paragraph that a selected word appears in!
    Thanks a lot for all your help.
    I copied the said javascript in below:
    / Highlight Color
    var colHilite = color.yellow;
    var oDoc = event.target;
    var aAnnts = oDoc.getAnnots({sortBy:"Author"});
    for(var i=0;i<aAnnts.length;i++)
       if(aAnnts[i].type == "Redact")
          aAnnts[i].type = "Highlight";
          aAnnts[i].strokeColor = colHilite;

    Thanks for your reply! But can I just extend the selection like a number of words or entire line of sentence before and after that search word for highlight/redaction? like Acrobat advanced search did some kind of result for finding but not wide enough I think.

  • How do i FIND a word on a webpage in safari 7?

    Since updating to ios 7, I can't figure out how to find a word on a webpage in Safari. In the older version, I could click on the Search box and search the webpage on the screen for a word or phrase. Surely this great feature that's been standard on all browsers for years is in the new Safari, and I just can't find it. Please help. TIA!

    Click on the url bar and delete the url address. You can then type in what you are searching and it will be labeled "On This Page".

  • Find a word

    When I try to "find" a word in a document a message appears that reads, "Reader has finished searching the document. No matches were found". This even occurs when I type a simple word such as "a" or "the" when these words are obviously in the document. Please help!

    It could be an issue with how it was created or a font.
    Open the PDF in Reader and go to File>Document Properties>Description.
    What does it show next to PDF producer and PDF version?
    Next, in document properties, click on the fonts tab. What do you see there (exactly)?

  • Where can i find microsoft word from a furbised/used apple computer?

    our facility was given a used computer (apple) after they deleted all files in it. however i am trying to see if i can find the WORD in it so kids can use it for their paperwork. But i could not find it in the system. I do not want to buy a new word 365 because it is not compatible with the pc. I need help please?

    What is an iMac65? That isn't a model identification.
    Open System Information/Profiler in the Utilities folder. Report what is listed in the right panel for the Mac Model Identifier. Should be two integers separated by a comma.

Maybe you are looking for

  • Cannot delete file error -43 file not found

    I cannot find and/or delete a file. The error is -43 file not found. It prevents me form making a backup with carbon copy. The file was in applications / illustrator / legal / strangecharacters.html (now in trash) and size 112kb. I am the admin of th

  • Help!!! Macbook fan not turning on!

    Hello there! I have a problem with my macbook fans. The fans do not turn on until the computer has been running at 80°C for 5 minutes and only then my macbook only runs at 3000 revolutions. The fans idle is 2000... I know this because I have an appli

  • [Solved] Default interface routing issues

    I have two network interfaces connected to my newly installed ArchLinux server,  one LAN and one WAN connection.  The trouble is that all traffic that is trying to connect to the wan interface gets no response, while the LAN connection work without a

  • Presence status not shown in Mail since Mavericks upgrade

    Hi there, In Messages I have two chat accounts, GTalk and Jabber with many contacts. Presence is shown here, I can chat with them, fine. Before I upgraded to Mavericks pesence of these contacts was also shown in Mail. Both when reading in incoming e-

  • Can I connect a second monitor??

    Is it possible to add one of the HD LCD monitors from apple to the eMac? Just curious. Thanks