Search for a whole word fails if word in text is preceeded by "-"

Hallo there,
I discovered a new "feature" by Adobe Reader. When I search for a Whole word, and if a word is preceeded by a "-" it lists it, although it shouldnt.
For example. Serached word : "Word".
In the results you will find something like "Wrongly-found-word, Wrongly-listed-word" etc.
How to exclude those cases ?
Thanks in advance,
B

Btw, maybe such whole word search is possible only with a regular expression?
Other exampels
Word to search for : "X"
Results could be also: "Y-X-Z", "Y-Z-X', "X-Y-Z".
All I would like to have is aber only when "X" is preceeded and succeeded by a space character, or in best case by a single, non-letter, non-digit character.
I will appreciate any helpful advice, how to search and find a whole word only.
Regards,

Similar Messages

  • Searching for a whole word within a sentence

    I am trying to search for a whole word only in a sentence. The problem is if I use CS then I get things that contain the string in other words. If I use CO or CP then there is no match because there are other words in the sentence. I don't think it's practical to split the sentence into individual words and then compare each word as the sentence is of an unknown length and could be made up of many words.
    An example:
    Sentence 1 - THIS IS ABOUT RF OUTPUTS.
    Sentence 2 - THIS IS ABOUT MY PERFORMANCE
    The user wants to search for sentences containing RF. In this search I only want sentence 1 to be found and not the RF in the word performance in sentence 2.
    Can anyone tell me how to do this.
    Many thanks
    Karen

    DATA: str1(50),
          str2(50),
          srchstr(10).
    DATA: BEGIN OF st_str,
            str(50),
          END OF st_str.
    DATA: it_tab LIKE TABLE OF st_str WITH HEADER LINE.
    str1 = 'THIS IS ABOUT RF OUTPUTS RF'.
    str2 = 'THIS IS ABOUT MY PERFORMANCE RF'.
    srchstr = 'RF'.
    SPLIT str1 AT space INTO TABLE it_tab.
    LOOP AT it_tab WHERE str = srchstr.
      WRITE : srchstr.
      WRITE 'found in'.
      WRITE 'str1'.
      EXIT.
    ENDLOOP.
    CLEAR it_tab[].
    SPLIT str2 AT space INTO TABLE it_tab.
    LOOP AT it_tab WHERE str = srchstr.
      WRITE : srchstr.
      WRITE 'found in'.
      WRITE 'str2'.
      EXIT.
    ENDLOOP.
    Check this code as it solves the leading RF and trailing RF problem .

  • How to search for perticular Bookmark present in many word files at once

    Hi all,
    We have templates created through Word 2003. We have created the Bookmarks in that some are fetched from database and others are from a XML file, through the code.
    We do Alt+i+k and the list of bookmarks present in that template appears.
    So, If I want to search for suppose a bookmark named 'GC_F_faxnumber' which is bookmark for fax number, I need to go through alll templates (there are about 500 template) one by one and then find it out.
    I need this work to be done ASAP. Could you please help me in how do I find out a bookmark in number of word files or templates the bookmark is located and in which all templates it is present.
    Thanks in advance.:)

    Hi,
    For this requirement, I think you need to iterate to open these files and use
    Bookmarks.Exists method to check whether the specify bookmark is exist or not.
    There is a link that may benefit you:
    # GoTo Bookmark in a Word Document using Excel VBA
    http://answers.microsoft.com/en-us/office/forum/office_2003-word/goto-bookmark-in-a-word-document-using-excel-vba/6161709e-5419-4cc4-9c8f-7a2cd5f56d6a
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Search for a String within a document (Word, txt, doc) using JSP, JAVA

    Hi
    I have created a little application that uses combination of JSP and HTML. Users of this application can upload documents which are then stored on the server. I need to develop functionality where I can allows users to search for a string within a document. More precisely, user would type in some string in a text box and application will search all uploaded documents for that string and return the downloadable links to those documents that contains that string. I have never done this before. I was wondering if someone could get me started on this or point me to some thread where this idea is already discussed. Any Jave code exists for searching through documents??
    Thanks for your help
    Riz

    http://www.ibm.com/developerworks/java/library/j-text-searching.html
    http://en.wikipedia.org/wiki/Full_text_search
    Type these parameter in yahoo:+efficient text search
    you will need something like openoffice library to read microsoft word document.

  • How do you do a search for multiple occurences of the same word in a NOTE?

    How do you search for multiiple occurences of a word in NOTES?  I seem only to be able to find the first occurence and then it goes into a loop, never past the first occurence.

    I want to find all the same words in ONE NOTE. It is a very loong list and I want to find all cccurences of a specific word in that one NOTE when I do a search. I thought I had solved this earlier today but now I can't seem to repeat it. I type in word in the SEARCH box, select the NOTE and then it shows me the FIRST occurence in that note, but only the first,

  • I am trying to write a grep search for the first instance of a word in a paragraph.

    How can I identify only the first instance of 'FREE' in a paragraph and apply a style to it, without also styling the 2nd or more instance of the word?
    Thanks

    (?i)^(.+?)FREE should find the first instance in a paragraph. The (?i) makes the search case insensitive in case it wasn't typed as all caps, the ? inside the second grouping makes the shortest match for cases when there is more than one instance in a paragraph, and I've not added any quotes since I presumed those aren't actually in the text.
    I would deal with the formatting by typing FREE exactly as you want it someplace on the pastebord, then copy to the clipboard. Change to $1~c which replaces the found string with the text found in the first subexpression (.+?), which is the stuff before the first FREE, and the the formatted contents of the clipboard for the FREE.

  • My Word for Mac 2011 repeatedly fails to display certain text boxes if I apply text changes. How can I view the invisible text?

    I have Mac OS X 10.6.8. I recently had to download Office for Mac 2011, as my company mandated this over my objections. On the first 20-page Word file I received, the file looked fine until I applied track changes and made the first edit. At that point, 2 pages of text disappeared (the entire file was Calibri 11 size). The disappearing text was all in a couple of text boxes separate from the rest of the file. If I did a search, it would point to the white screen, but I could not view it except in Web layout, which is unsuitable for track changes. Unfortunately, all my supervisors say they can see the text that I cannot see.
    I know that Word 2011 is notorious for not reading fonts, but this file is all in the same font/size. How can I see the hidden text before I lose my job?

    Have you tried Word for Mac?
    You will need to test if links survive export or printing to .pdf
    Peter

  • Urgent: Search for user with 'ß' character failed.

    Hi all,
    I have problem for searching the user with 'ß' character included in the name of user in Identity Management.
    When nothing is specified in the search criteria, then the user is displayed.
    When the name of user without 'ß' is given in the search criteria, then also the user is displayed.
    But when the name is given with 'ß'  in search criteria, the user is not recognized and cannot be displayed.
    'ß'  is the German Character.
    Please help me out, why the user is not recognized with the character 'ß'  in the search criteria.
    Thanks in Advance.
    Regards,
    Yogita.

    Hi,
    You can ofcourse use ß and all other chars in your search.
    It makes no sence that you can create users with these chars, but cannot search using them.
    I tried to create user with char ß and also could search with this char. So it is only a local problem on your server.
    Is your UME connected with LDAP or DB? My UME where I tested is DB.
    So dont give up, open an OSS message with SAP for a solution and also update this thread if you find an answer.
    Regards,
    Praveen Gudapati

  • Search for files over 100MB fails

    I had an issue recently where I completely filled up my internal hard drive on my MacMini.  I have take the time to clean it out using HD Cleaner and I now have 69.24GB of free space.  Just to make sure there isn't any other junk I can get rid of I am attempting to go to "Files over 100MB" and I get a popup window that states "The operation can't be completed" with only an OK button to dismiss this.  Anyone know how to fix this?  I am running OSX 10.9.3
    Thank you,
    Justin

    I had the same problem. Never got to the bottom of it, (I hypothesised that it might be a folder permission issue maybe?), however I tried the "Disk Doctor" app which worked fine. When I first ran it, it asked me to allow permission to access the drive. There is a selection category of >100mb files in there (which you cherry pick the ones to get rid of), plus identifies a load of other junk which you can choose (or not) to delete.
    https://itunes.apple.com/gb/app/disk-doctor/id455970963?mt=12

  • When using spotlight search on my 5s it will not show past text messages that haven't even been deleted even if I type a specific word that I know is in a message I want to search for. I have message search turned on in the spotlight settings.

    When using spotlight search my phone will not show all text messages with a common word even though I have not deleted any messages from my phone and I have the message search turned on in settings under spotlight search. The search only shows the messages that are recent within the past day or so. Why won't it show the other messages when I search for them even using a specific word that I know was in the message I'm searching for.

    Hello ChiomaM,
    It sounds like you are not getting notifications for new text messages that are coming in, and you must manually check the app. I recommend checking the Notification settings to see if they are configured correctly:
    iOS: Understanding notifications
    http://support.apple.com/kb/ht3576
    iOS apps can provide three types of notifications:
    Sounds: An audible alert plays.
    Alerts/Banners: An alert or banner appears on the screen.
    Badges: An image or number appears on the application icon.
    You can view which apps provide notifications and adjust notification settings using Settings > Notification Center. For additional information, refer to the user guide for your device.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Regex: searches for first letter in word return all letters

    I want to init-cap the words in a sentence, and I use the pattern "\\b[a-z]" to search for the first letter of each word. However, it actually matches all the letters, so that the entire sentence is capitalized. If I reverse the pattern to look for the last letter of each word, "[a-z]\\b", then only the last letter is capitalized as expected.
    Is this a bug or a misunderstanding of regular expressions on my part?
    Here's my code:
    String s = "this is a test";
    Pattern p = Pattern.compile("\\b[a-z]");
    Matcher m = p.matcher(s);
    StringBuffer sb = new StringBuffer();
    boolean result = m.find();
    while(result) {
    m.appendReplacement(sb, m.group().toUpperCase());
    result = m.find();
    m.appendTail(sb);
    System.out.println(sb.toString());

    It capitalizes only the first letter of words for me. Try getting the latest version of the JDK.

  • RoboHelp 8 vs. 9 - Search Functionality Comparison and "All of the Words" vs. "Any of the Words"

    Greetings!
    Our organization focuses a lot on the accuracy of our searches, which is a necessity when we have hundreds of very lengthy topics (no matter how well organized they are).
    I finally completed a detailed comparison of the search functionality of 8 and 9 and came to the realization that 8 is a disaster, while with 9 things get better, but there's still TONS of room for improvement.  I have reported this to Adobe and so far there has been no official response. There are many blogs on here related to the search functionality, but I thought it may be a good idea to try to sum some of them up. I do hope that someone somewhere at Adobe runs into this and shares with all of us why Adobe's Search functionality is still in the 20th century!
    I hope this helps everyone else who is curious to know about how the tool's search functions work and whether it's worth upgrading from 8 to 9 at this point. I have included some examples which are in a way internal to us, but they will give you a good idea of what to expect and I'm quite confident you'll be able to recreate them on your side in seconds.
    I also wanted to ask a question or two, and if anyone can assist, that would be greatly appreciated:
    Currently if we search for several words at once (not exact phrase), both 8 and 9 perform an "Any of the words" search which always returns too many results. Does anyone know a way to change the default to an "All of the words" search? For years I have not encountered a tool out there that doesn't have the option to modify this, alas with RoboHelp 8 and 9, we can't find a way to do it (with or without modifying the source code).
    Out of curiosity, are there any other tools out there which offer Conditional Tag (or similar) functionality and which behave better than RoboHelp? (easier to maintain, less buggy, web interface, etc)?
    RoboHelp 8 vs 9 - Search Functionality Comparison Table with some Examples:
    Search Example              
    RoboHelp 8     
    RoboHelp 9        
    Expected Results
    (based on industry standards)
    1. Searching for Exact Phrase "Correspondent Banking"
    Such a search returns topics which contain "Correspondent Banking" and "Correspondent Bank". The last one is included because "Bank" is the root of "Banking". The topics that contain the exact phrase appear at the bottom. When we click on any of them, we're not automatically taken to phrase so we have to scroll and look for it or use CTR+F.
    Identical behavior except that when we click on the topics which contain the exact phrase, we're taken straight to it.
    When we hear "exact" we expect "exact" and nothing else. Unfortunately, both versions keep searching for the roots of each word as well and incorrectly display those results at the top. Adobe has made it clear that this is a part of their functionality, BUT this is something we would not expect to see for exact phrase searches that are in quotes.
    2. A Non-Exact phrase search of "Geographical Limits of market area"
    The tool automatically performs an "Any of the Words" search instead of an "All of the Words" search. This is also related to the question I asked above this table. As you can imagine, this is returning almost every topic and it becomes virtually impossible to find what we're looking for. It even returns topics which contain "of" and nothing else.
    Identical behavior
    There to be an option which allows us to choose what the default search would be - "Any of the words" vs. "All of the Words"
    3. Exact Phrase search of "low-score" with a dash
    None of the topics that were returned contain the phrase. As some of you know, RH8 has problems with special characters, including dashes.
    RH9 returned only the topic that which contains the phrase and we were taken straight to it when we open it.
    The expectation is to see exactly what RH9 currently offers. Unfortunately 8 has a big problem with these types of searches.
    4. Exact Phrase search of "2.4"
    This is similar to the one above. Adobe doesn't like periods as well. It doesn't not find any of the topics which contain this phrase. In our case, this is a section number and sometimes people want a quick way to get to a specific section or sub-section.
    We were hoping that this will be fixed with 9, just the way they fixed the dashes. Unfortunately, still ZERO results returned.
    Expectation is for the topics which contain that exact phrase to be returned, no matter whether there's any special character inbetween.
    5. Exact Phrase search of "300,000" or $300,000"
    The tool only returned several random topics which contain "000" as part of larger numbers. The topic that contains "300,000" was not on that list, even though it also contains "000".
    Identical behavior
    Expectation is for topics that contain the exact amount to be returned, no matter if there is a coma or a dollar sign anywhere within the phrase.
    6. Exact Phrase Search of "525-B5". Goal was to have a special character, a letter and numbers.
    ZERO Results returned.
    Only the docs that contain the phrase were returned and nothing else. It seems that this this was addressed in version 9 and now it behaves as expected.
    Expectation is only for the docs that contain the exact phrase to be returned.
    7. Exact phase search of "log" in order to test the Substring Functionality
    Here's an extract from Adobe's Support Site:
    “Substring search (WebHelp/Pro, FlashHelp/Pro) - If you enable this feature, a search for "log" returns topics containing the words "catalog" and "logarithm." Substring search takes longer than whole-string search.”
    So with that in mind, we decided to test if turning the substring searches on and off does exactly as advertised, unfortunately the answer was NO. We even used an example almost idnetical to what Adobe provided on their site.
    With Substring Searches disabled, we searched for the word "log". Unfortunately it returned words like "logbook" and methodology". How is that possible?
    Identical behavior
    Our expectation would be only for docs that contain"log" to be returned, no matter whether substring is enabled or disabled. In our case it was disabled.

    Hi there
    Out of curiosity, why is it that you expect to hear from Adobe? I'm hoping it's not simply because you posted here. Certainly we have Adobe folks that visit here and we are thankful for that, but it isn't to be expected.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Search for text within files

    How do you search for files that contain a specific string of text?  I tried going to the folder in the finder and typing the string in the search box, but it does not seem to return correct results.   True, I do see a couple of files that contain my string, but it doesn't show all the results.  There are files that I know contain the string in the same folder, but it does not show them??
    Bob

    Spotlight should index PDF files (as well as Word and some other kinds of files) but it seems that PDFs are not created equal. I've seen and heard complaints that some scanner/OCR programs are saving files that aren't searchable and yours is one of them. Try opening one of the files in Preview and resaving it.

  • Spotlight searchs for English apps and not Spanish

    Hi,
    Some macs I own have a very estrange problem. A can use spotlight for finding everything but no Spaniard words for Applications. for instance, if I use spotlight for searching "address book", no problem at all but if I search for "agenda", which is the Spaniard word for address book it won't find it in applications.
    This only happens in spotlight, but not in finder, where all the apps have their Spaniard name correctly and of course I have the system in Spanish.
    How can I solve this?
    Thanks

    Hi,
    I had the same problem once and solved it like this: http://discussions.apple.com/thread.jspa?threadID=888614&tstart=0
    Björn

  • How can I use SQL to search for a pattern within a field?

    Hello, Frank, Solomon, ect
    I am now faced with this particular scenario, I've got the SQL to search through a field to find text within the field, but I have to know what it is before it can look for it.
    What I have to do is this:
    Search through a field, for a pattern, and I won't know what the data is I am looking for. Can this be done in SQL?
    For instance, Here is my SQL this far, I was helped allot in order to get to this point.
    select table_name,
           column_name,
           :search_string search_string,
           result
      from (select column_name,
                   table_name,
                   'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
              from cols
             where table_name in ('TABLE1', 'TABLE2')),
           xmltable (str columns result varchar2(10) path '.')
    When you execute the above SQL, you have to pass in a value. What I really need is to alter the above SQL, to make it search for a pattern that exist's within the text of the field itself.
    Like for instance, lets say the pattern I am looking for is this" xx-xxxxx-xxxx" and it's somewhere in a field.
    I need to alter this SQL to take this pattern and search through all the schemas and tables to look for this pattern match.
    Can be done?

    When you use something dynamically within a function or procedure, roles do not apply and privileges must be granted directly.  So, you need to grant select on dba_tab_cols directly.  If you want to do pattern matching then you should use regular expressions.  The following example grants the proper privileges and uses regexp_instr to find all values containing the pattern xxx-xxxx-xxxx, where /S is used for any non-space character.  I limited the tables in order to save time and output for the test, but you can eliminate that where clause.
    SYS@orcl> CREATE USER test IDENTIFIED BY test
      2  /
    User created.
    SYS@orcl> ALTER USER test QUOTA UNLIMITED ON USERS
      2  /
    User altered.
    SYS@orcl> GRANT CREATE SESSION, CREATE TABLE TO test
      2  /
    Grant succeeded.
    SYS@orcl> GRANT SELECT ON dba_tab_cols TO test
      2  /
    Grant succeeded.
    SYS@orcl> CONNECT test/test
    Connected.
    TEST@orcl> SET LINESIZE 90
    TEST@orcl> CREATE TABLE table1
      2    (tab1_col1  VARCHAR2(60))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table1 (tab1_col1) VALUES ('xxx-xxxx-xxxx')
      3  INTO table1 (tab1_col1) VALUES ('matching abc-defg-hijk data')
      4  INTO table1 (tab1_col1) VALUES ('other data')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    TEST@orcl> CREATE TABLE table2
      2    (tab2_col2  VARCHAR2(30))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table2 (tab2_col2) VALUES ('this BCD-EFGH-IJKL too')
      3  INTO table2 (tab2_col2) VALUES ('something else')
      4  SELECT * FROM DUAL
      5  /
    2 rows created.
    TEST@orcl> VAR search_string VARCHAR2(24)
    TEST@orcl> EXEC :search_string := '\S\S\S-\S\S\S\S-\S\S\S\S'
    PL/SQL procedure successfully completed.
    TEST@orcl> COLUMN "Searchword"     FORMAT A24
    TEST@orcl> COLUMN "Table"     FORMAT A6
    TEST@orcl> COLUMN "Column/Value" FORMAT A50
    TEST@orcl> SELECT DISTINCT SUBSTR (:search_string, 1, 24) "Searchword",
      2               SUBSTR (table_name, 1, 14) "Table",
      3               SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
      4  FROM   dba_tab_cols,
      5          TABLE
      6            (XMLSEQUENCE
      7           (DBMS_XMLGEN.GETXMLTYPE
      8              ( 'SELECT ' || column_name ||
      9               ' FROM ' || table_name ||
    10               ' WHERE REGEXP_INSTR
    11                     (UPPER (' || column_name || '),''' ||
    12                  UPPER (:search_string) || ''') > 0'
    13              ).extract ('ROWSET/ROW/*'))) t
    14  WHERE  table_name IN ('TABLE1', 'TABLE2')
    15  ORDER  BY "Table"
    16  /
    Searchword               Table  Column/Value
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>matching abc-defg-hijk data</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>xxx-xxxx-xxxx</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE2 <TAB2_COL2>this BCD-EFGH-IJKL too</TAB2_COL2>
    3 rows selected.

Maybe you are looking for

  • Lumia 520 eating phone credit/balance

    Hey. I recently bought Nokia Lumia 520. It's quite awesome phone. But there's one problem. My phone credit/balance keeps somehow decreasing a bit even though I haven't called or sent any messages. It eats about 10 cents in 6 hours. I have shut every

  • Can I use my Lr Licens on both my computers?

    Can I use my Lr licens on both of my computers?

  • Error 12703 VMM cannot establish a trust relationship SSL/TLS V2V

    Issue with V2V in VMM. I though I'd share this one. On a customer site doing a number of V2Vs and P2Vs via VMM. On the V2V it would create the object then fail with the message below where %ServerName is one of the Hyper-V hosts: 12703 VMM cannot est

  • Nearly daily Mac Mini restarts - Panic log attached

    Hi Guys and Gals, I get almost daily (un-intended) reboots of my Mac Mini.  Also, often when I use Screen Sharing to remotely control it, it will reboot. Any help or insight you can give would be appreciated! Panic log follows. Jason Interval Since L

  • Journal Entry - Balanced CheckBox defined by Default

    Hi Experts, I have the following requirement in a project that I'm involved with: when the user posts a Journal, the system must show a warning if the journal is unbalanced. I know that JRN_BALANCED parameter can be configured in the Model Parameters