To find a word in a string.

Please, is there a way to find a word in a string?
For exemple:
The string contains... "Hello World Java Sun"
I need to find the word "Java", and I'd like to do not compair char by char... I'd like to do it faster than one by one...
Is there a way? How should I do? I was thinking to use something like substring... but even it... I need to compair char by char... (or I didn't?)
Thanks a lot

go to search engine and learn the String class it will help u in the future.
     indexOf
public int indexOf(String str)
    Returns the index within this string of the first occurrence of the specified substring. The integer returned is the smallest value k such that:
         this.startsWith(str, k)
    is true.
    Parameters:
        str - any string.
    Returns:
        if the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does not occur as a substring, -1 is returned

Similar Messages

  • 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.

  • Regarding finding of word in a string of Application Server Path

    Hi All,
    I have issue related to finding a certain <b>file name(S)</b> from given <b>Application Server Path</b>.
    Here is the actual issue:
    In my Selection-Screen i have one field by the name of <b>Application Server Path</b> - /pw/data/erp/D5S/pp/down/eppi0720.txt
    Like wise he might enter diffrent file name(s) (or) diffrent pat(s) as per requirement.
    Here my requirement is i need to find file discarding path in to one variable - Remember path might also differ also file name might also differ.
    Is there any <b>Keyword/Command</b> by which we can findout only <b>filename</b> from the <b>path</b>!
    I think with <b>'/'</b> operator we can solve this issue.
    If any body knows solution please post.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi,
    use fm EPS_GET_DIRECTORY_LISTING'
    example:
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
           DESTINATION                   q
           EXPORTING
                dir_name               = folder
                file_mask              = mask
           IMPORTING
                file_counter           = cnt_file
                error_counter          = err_file
           TABLES
                dir_list               = dir_list
    Andreas

  • Here's how to find the right word in a string

    I needed to find the rightmost word in a string. I didn't find a simple formula in these forums, but I now have one, so I wanted to share it. Hope you find it useful.
    Assuming that the string is in cell A1, the following will return the rightmost word in the string:
    RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1," ","*",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

    I found the problem. Whatever character was being used in the substitution was parsed out by the forum parser. I replaced it with "œ" (option q on my keyboard).
    =RIGHT(A1,LEN(A1)-FIND("œ",SUBSTITUTE(A1," ","œ",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))
    Still needs an error check for a single-word "sentence" and to remove the trailing period but it does seem to work. Pretty slick.
    Message was edited by: Badunit
    I see below that the problem was fixed by the OP.
    Message was edited by: Badunit

  • 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.

  • How find a word in txt from Java??

    Hi everybody...somebody knows how to find an especific word that is located in file txt from java somebody has the code???
    Thanks in advance

    Here is the code for finding a word in txt file from Java.
    import java.io.*;
    public class FindTextFromFile
        public static String getString(String fileName)
            StringBuffer fileContent = new StringBuffer(); //appending long String objects repeatedly is very costly
            try
                BufferedReader fileReader = new BufferedReader(new FileReader(fileName));
                String line = "";
                while((line = fileReader.readLine())!=null)
                    fileContent.append(line);
                    fileContent.append(System.getProperty("line.separator")); //size of line.separator=2
            catch (IOException e)
                e.printStackTrace();
            return fileContent.toString();
        public static int[] getIndicesOf(String fileName, String findWord)
            String fileContent = getString(fileName);
            int[] indices = new int[(int)(fileName.length()/findWord.length())]; //max possible occurances
            int index=0, from=0, incr=0;
            while ((index=fileContent.indexOf(findWord, from))!=-1)
                indices[incr++]=index;
                from=index+findWord.length();
            indices[incr]=-1; //marking the end of search result storing
            return indices;
        public static void main(String[] args)
            String fileName = "rawTextFile.txt";
            String findWord = "is";
            System.out.println(getString(fileName));
            System.out.println();
            System.out.print("Occurences of '"+findWord+"' found: ");
            int[] indices = getIndicesOf(fileName, findWord);
            for (int i=0; indices!=-1 && i<indices.length; i++)
    System.out.print(indices[i]+" ");

  • 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";

  • Delete the first word in a string?

    Hi, i have a code in which i can extract the first three words in a string. after it's found the three first words, i would like it to remove the first one, what could i add?
    this is what the code looks like:
    import java.util.regex.*;
    class Test187D {
         public static void main(String[] args) {
              String word1;
              String word2;
              String word3;
              String partDesc = "Hi my name is SandraPandra";
              Pattern pattern = Pattern.compile("^(\\w+)\\s+(\\w+)\\s+(\\w+)");
              Matcher matcher = pattern.matcher(partDesc);
              //Find the first word of the part desc
              if (matcher.find()) {
                   word1 = matcher.group(1);
                   word2 = matcher.group(2);
                   word3 = matcher.group(3);
                   System.out.println (word1 + " " + word2 + " " + word3);
    } Thank you in advance

    Take the length of the first word, plus one for the length of the space, that's how many characters to remove. Take the substring of the original string from the end of the removed part to the end of the whole string. Look up the String methods length(), and substring().

  • Regex - Find a word

    Greetings all
    I want to find a particular word in a string
    example string: SELECT CUSTOMER.STUDENT."NAME", CUSTOMER.STUDENT." FROM DATE" FROM CUSTOMER.STUDENT
    i want to grab the FROM WORD from the above string .
    search condition: There must be a space before and after the FROM word and FROM word should not contain double quote before and after.
    as you can see in the above string there is a string named " FROM DATE " .this string also contains FROM word , i want to exclude this type of FROM word .
    your advice and suggestion would be great :)

    My advice is don't post the same question multiple times. It pisses people off and makes them less likely to be helpful.

  • Index of word in a String

    How can I find the index of a word in a String?
    E.g.
    String a = "This is a book";
    In this the index of word "is" is 5 not 2.
    A word is a sequence of char separated from other char sequences by a one of " \t\n\r\f", i.e. the default StringTokenized delimiters.
    Regards,
    Lokesh

    Yes something like this.
    This is how I solved it
      private static final String WORD_DELIM = " \t\n\r\f,.;:";
      private int getIndexOfWord(String str, String text) {
        StringTokenizer tokenizer     = new StringTokenizer(str, WORD_DELIM, true);
        String token;
        StringBuffer previousContents = new StringBuffer();
        while(tokenizer.hasMoreTokens()) {
          token = tokenizer.nextToken();
          if(startsWithWord(text, token)) {
            break;
          previousContents.append(token);
        if(previousContents.length() == 0) {
          return -1;
        } else {
          return previousContents.length();
      private boolean startsWithWord(String word, String token) {
        //The token must start with "word"
        if(!token.startsWith(word)) {
          return false;
        //Now rplace all delimiters by blanks
        int delimCount = WORD_DELIM.length();
        char c;
        for(int i = delimCount - 1; i >= 0; i--) {
          c     = WORD_DELIM.charAt(i);
          token = token.replace(c, ' ');
        //Finally get rid of the blanks.
        token = token.trim();
        if(token.equals(word)) {
          return true;
        return false;

  • Replace complete words by another string

    Hi,
    I'm searching for a possibility to replace complete words inside a string.
    For example I want to replace "quick" by "slow":
    "The <b>quick</b> brown fox is running quicker then the slow brown fox".
    The result shall be:
    "The <b>slow</b> brown fox is running quicker then the slow brown fox".
    The problem is, that the built in "Replace"-Method would also replace "quicker" by "browner".
    Furthermore, words beetween different signs (e.g. , . ; : - ! " ? ') shall also be found as complete word.
    I already searched for a FM but didn't find anything. Regular expressesions are also not possible because we are running on 6.40.
    Maybe anybody can help me with a simple FM or something else.
    Best regards,
    Stefan

    Hi Stefan,
    There is a crude way of doing this....with lots of loops..
    You can use the SPLIT statement
    SPLIT dobj AT sep INTO
          { {result1 result2 ...} | {TABLE result_tab} }
          [IN {CHARACTER|BYTE} MODE].
    and break the sentence into words using space as delimiter. Once you have all the words in a internal table, you can loop through it and compare each word with the word you want.
    This will solve the problem, but will not be performant enough.
    Regards,
    Vinodh

  • Counting a particular word in a string

    Hi All,
    Have a query to find the occurence of a particular word in a string using a query.
    ex: str := 'a,b,a,c,d'
    search_str := 'a'
    => need to get the number of times 'a' is getting repeated in the string str.
    output: 2
    Hoping for the best support as always.
    Edited by: Aparna16 on Jul 17, 2012 5:55 AM
    Edited by: Aparna16 on Jul 17, 2012 5:56 AM

    SQL> ed
    Wrote file afiedt.buf
      1  with sample_data as
      2  (
      3  select 'aaa,abcdd,abc,abc,asdasd' cola, 'abc' matchCol from dual union all
      4  select 'a,b,a,c,d', 'a' from dual union all
      5  select 'a,b,a,c,d', 'e' from dual  union all
      6  select  'aaa,abcdd,abc,abc,asdasd,abc', 'ab' from dual union all
      7  select  'aaa,abcdd,abc,abc,asdasd,abc', 'abc' from dual
      8  )
      9  select cola, matchcol, length(cola||',') - length(replace(cola||',',matchcol||',',substr(matchcol,2)||','))  cnt
    10* from sample_data
    SQL> /
    COLA                         MAT        CNT
    aaa,abcdd,abc,abc,asdasd     abc          2
    a,b,a,c,d                    a            2
    a,b,a,c,d                    e            0
    aaa,abcdd,abc,abc,asdasd,abc ab           0
    aaa,abcdd,abc,abc,asdasd,abc abc          3

  • Find whole word

    How i can find whole words only in a string?
    If we have a string like "Hello any person in any part of world" And User searches for "an"
    in normal search, he finds 2 match But he must find it only if the string has contained "an" as a whole word  like "this is an apple"
    It may be possible.

    Hi
    As usual, late to the party.  Here is an example in the form of a stand alone Project.
    ' new Project with default BLANK Form1
    ' replace ALL Form1 code with this code.
    ' Illustrates simple word find in string
    ' using simple RegEx with CASE/NO CASE.
    Option Strict On
    Option Explicit On
    Option Infer Off
    Imports System.Text.RegularExpressions
    Public Class Form1
    Dim rtb As New RichTextBox
    Dim tb1, tb2, tb3 As New TextBox
    Dim lab1, lab2 As New Label
    Dim b, b1 As New Button
    Dim cb As New CheckBox
    Dim r1, r2, r3 As New RadioButton
    Dim NormalF As New Font(rtb.Font.FontFamily, 12, FontStyle.Regular)
    Dim HiLight As New Font(rtb.Font.FontFamily, 16, FontStyle.Bold)
    Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    Me.Size = New Size(300, 550)
    With rtb
    .Location = New Point(5, 5)
    .Text = "12345678901234567890123456789012345678901234567890123456789012345678901234567890" & vbCrLf
    .Text &= "{.An.} This .AN.is a {an}test string using completely random words and characters and is NOT a sentence. An they show any of another [An] yet another set of an characters (an) numbers an dots ... and a lot of spurious characters An an AN aN type entries....." & vbCrLf & "30/12/2013 12.30.2013 2013\12\30"
    .Multiline = True
    .Size = New Size(270, 200)
    .BackColor = Color.Khaki
    .ForeColor = Color.Maroon
    .Font = NormalF
    .Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top
    .BorderStyle = BorderStyle.FixedSingle
    .ScrollBars = CType(ScrollBars.Vertical, RichTextBoxScrollBars)
    End With
    With lab1
    .Text = "Pattern"
    .Location = New Point(5, 430)
    .AutoSize = True
    .Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Bottom
    End With
    With tb1
    ' date finder
    .Text = "(?<month>\d{1,2})[/\\.-](?<day>\d{1,2})[/\\.-](?<year>\d{2,4})\b|\b(?<year>\d{2,4})[/\\.-](?<day>\d{1,2})[/\\.-](?<month>\d{1,2})"
    .Location = New Point(56, 425)
    .Width = 100
    .BackColor = Color.Khaki
    .ForeColor = Color.Maroon
    .Font = New Font(Me.Font.FontFamily, 12)
    .Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Bottom
    .BorderStyle = BorderStyle.FixedSingle
    End With
    With tb2
    .Location = New Point(5, 215)
    .Multiline = True
    .Size = New Size(270, 200)
    .BackColor = Color.Khaki
    .ForeColor = Color.Maroon
    .Font = New Font(Me.Font.FontFamily, 12)
    .Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top Or AnchorStyles.Bottom
    .BorderStyle = BorderStyle.FixedSingle
    .ScrollBars = ScrollBars.Vertical
    End With
    With lab2
    .Text = "Search"
    .Location = New Point(5, 460)
    .AutoSize = True
    .Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Bottom
    End With
    With tb3
    .Text = "an"
    .Location = New Point(56, 455)
    .Width = 100
    .BackColor = Color.Khaki
    .ForeColor = Color.Maroon
    .Font = New Font(Me.Font.FontFamily, 12)
    .Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Bottom
    .BorderStyle = BorderStyle.FixedSingle
    End With
    With b
    .Text = "Find"
    .Location = New Point(210, 486)
    .Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
    .Width = 50
    End With
    With b1
    .Text = "Clear"
    .Location = New Point(160, 486)
    .Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
    .Width = 50
    End With
    With cb
    .Text = "Ignore CASE"
    .Checked = True
    .Location = New Point(0, 486)
    .Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
    .RightToLeft = Windows.Forms.RightToLeft.Yes
    End With
    With r1
    .Width = 16
    .Text = Nothing
    .Checked = False
    .Location = New Point(tb1.Right + 15, tb1.Top)
    .Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
    End With
    With r2
    .Width = 16
    .Text = Nothing
    .Checked = False
    .Location = New Point(tb3.Right + 15, tb3.Top)
    .Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
    End With
    With r3
    .Text = "ALL"
    .Checked = True
    .Location = New Point(tb3.Right + 45, tb3.Top)
    .Anchor = AnchorStyles.Right Or AnchorStyles.Bottom
    End With
    Me.Controls.AddRange({rtb, lab1, lab2, tb1, tb2, tb3, b, b1, cb, r1, r2, r3})
    AddHandler b.Click, AddressOf b_Click
    AddHandler b1.Click, AddressOf b1_Click
    AddHandler r3.CheckedChanged, AddressOf ALLselected
    AddHandler cb.CheckedChanged, AddressOf KeepCase
    Me.Width = 500
    tb3.Select()
    End Sub
    Private Sub DoFind()
    ' set the pattern to use depending on Radio button selected
    Dim pattern As String = Nothing
    Select Case r3.Checked
    Case True
    ' use straight text pattern
    pattern = tb3.Text
    Case Else
    Select Case r1.Checked
    Case True
    ' use pattern as entered by user
    pattern = tb1.Text
    Case Else
    ' use basic regex pattern
    pattern = "\b" & tb3.Text & "\b"
    End Select
    End Select
    ' ignore case
    Dim rgxCI As New Regex(pattern, RegexOptions.IgnoreCase)
    ' case sensitive
    Dim rgxCS As New Regex(pattern, RegexOptions.None)
    rtb.SelectAll()
    rtb.SelectionBackColor = rtb.BackColor
    rtb.SelectionFont = NormalF
    If tb3.Text.Length < 1 Then Exit Sub
    Select Case cb.Checked
    Case True
    tb2.AppendText(vbCrLf & "CASE INSENSITIVE pattern = " & pattern & vbCrLf)
    Dim m As MatchCollection = rgxCI.Matches(rtb.Text)
    If m.Count < 1 Then
    tb2.AppendText("No Matches for '" & pattern & "'" & vbCrLf)
    Else
    tb2.AppendText("Found " & m.Count.ToString & " Matches, indexes = ")
    End If
    For Each match As Match In m
    rtb.SelectionStart = match.Index
    rtb.SelectionLength = match.Length
    rtb.SelectionFont = HiLight
    rtb.Refresh()
    rtb.SelectionBackColor = Color.LightBlue
    tb2.AppendText(match.Index.ToString & " ")
    Next
    Case Else
    tb2.AppendText(vbCrLf & "CASE SENSITIVE pattern = " & pattern & vbCrLf)
    Dim m As MatchCollection = rgxCS.Matches(rtb.Text)
    If m.Count < 1 Then
    tb2.AppendText("No Matches for '" & pattern & "'" & vbCrLf)
    Else
    tb2.AppendText("Found " & m.Count.ToString & " Matches, indexes = ")
    End If
    For Each match As Match In m
    rtb.SelectionStart = match.Index
    rtb.SelectionLength = match.Length
    rtb.SelectionFont = HiLight
    rtb.Refresh()
    rtb.SelectionBackColor = Color.Pink
    tb2.AppendText(match.Index.ToString & " ")
    Next
    End Select
    tb2.AppendText(vbCrLf)
    End Sub
    Private Sub b_Click(sender As Object, e As EventArgs)
    DoFind()
    End Sub
    Private Sub b1_Click(sender As Object, e As EventArgs)
    tb2.Text = Nothing
    tb3.Text = Nothing
    rtb.SelectAll()
    rtb.SelectionBackColor = rtb.BackColor
    rtb.SelectionFont = NormalF
    End Sub
    Private Sub ALLselected(sender As Object, e As EventArgs)
    Dim rb As RadioButton = DirectCast(sender, RadioButton)
    If rb.Checked Then
    cb.Visible = False
    cb.Checked = True
    Else
    cb.Visible = True
    End If
    End Sub
    Private Sub KeepCase(sender As Object, e As EventArgs)
    Dim cb As CheckBox = DirectCast(sender, CheckBox)
    If r3.Checked Then
    cb.Visible = False
    cb.Checked = True
    Else
    cb.Visible = True
    End If
    End Sub
    End Class
    Regards Les, Livingston, Scotland

  • How to find a word written with two fonts...?

    Hi,
    I have a 200+ pages document that contains some words with the first letter in Times regular and the rest in Times italic. Is there any way to find those words in the document?
    Thanks

    Ooooo, Dave ....
    Annabelle, a non scripting solution is the following.
    You cannot search for words with multiple fonts. However, since you can search for words in one font, you can exclude 'good' ones.
    I will be assuming you have a regular document, with just black text ...
    In Search & Replace, GREP, search for "\b\w+\b" with a font style of "Regular" and replace with formatting: text color red. Be sure not to accidentally put anything in the replace text field -- it should be entirely empty. Now all entirely Regular words are red.
    Repeat with the font style "Italic". Now all words that are entirely Regular or Italic are in red.
    Search for "\b\w+\b" with a text color of Black. This will find all words that are neither entirely in Italic nor entirely in Regular.
    In case you never used it before, the GREP expression means "a word boundary -- one or more word characters -- a word boundary". Essentially, it does a 'Find entire word' for any length of words.
    Note that if you have words in, say, bold, bold italic, or 46 Light Italic, you will have to mark these as well with the check colour, or else you'll also find them 'bad'.
    You might want to create a new swatch for marking, so you can delete it afterwards, replacing with Black again.
    ... Are you familiar with how to use scripts? It might be a bit easier if I wrote a tiny script, although my method will find all rogue formatted text.

  • The Firefox find function seems to have become CAPS or non-caps specific, so that typing a word in non-caps will not find matching words with one or more capital letter.

    The find function seems to have changed in Firefox. Before, when doing a (CTRL + F) find, the search was not CAPS-specific or non-caps-specific. In other words, if I typed in "firefox" (no caps), it would find the words "firefox", Firefox", or "FIREFOX", regardless of capitalization. Now, however, the find function will only match the exact same capitalization. This totally undermines the usefulness of the function, and is a major hassle. Please fix it.
    == This happened ==
    A few times a week
    == I noticed in in the last two or so weeks.

    I am having a similar problem. The following page has the word Dangerfield in several times. My browser will get to Dang and turns pink
    http://www.genuki.org.uk/big/eng/HEF/ProbateRecords/WillsD.html
    Is it my Browser or is there a problem with Mozilla?
    I have also noted on other Google searches the same problem. Te term is listed in the page but Ctl F will not find the term

Maybe you are looking for