Search Open C Reference Guide Tips

Maximizing Search Results

The following are sample search strings with possible output to display tricks for broadening or narrowing searches.
 
If you search for
The results will include anything that contains STRING1.
These are some possible results: If you search for
The results will include anything that contains both STRING1 and STRING2 regardless of the order.
These are some possible results: If you search for
The \s character is used to represent a space in the regular expression. The results will include STRING1 immediately followed by a space immediately followed by STRING2.
These are some possible results: If you search for
The results will include STRING1 immediately followed by an underscore immediately followed by STRING2.
These are some possible results: If you search for or
The results will include STRING1 immediately followed by a space or underscore immediately followed by STRING2.
These are some possible results: If you search for
The \s character represents a space in the regular expression.  Using quotes means that we will look for spaces or underscores in place of each \s character.  The results will include anything that contains the whole word STRING1 with spaces or underscores on both sides.
These are some possible results: NOTE the following search strings will yield different results:
and
The leading and trailing spaces in " STRING1 " are removed by default. To keep the leading and trailing spaces you must specify them manually with the special \s character as shown in "\sSTRING1\s".
 
 
If you search for
The ^ character is used to represent the start of the string in a regular expression. The results will include anything that starts with STRING1. Note if you use the ^ option with an expanded search, it will only find items whose names start with STRING1.
These are some possible results: If you search for
The $ character is used to represent the end of the string in a regular expression. The results will include anything that ends with STRING1. NOTE do not use the $ option with an expanded search. We append all of the possible information about each item (the item name, comments, etc.) into one searchable string for the expanded search. Therefore you would only find things whose very last comment ended with STRING1 - which is most likely not what you want.
These are some possible results: