Find
This option is also available on the Lookup Table Editor tab for Lookup Tables.
Find What
Enter the value of the search string in Find What. Any searches you make in the current session are available for selection in a drop-down History list attached to the input box. You can include wildcard characters in the search string to generalise the search.
Examples are shown in the tables below.
Possible matches will depend on whether:
- You want to Match on the start of a field, part of a field, or a whole field. NOTE: These Match options are redundant if the '$' wildcard is used (see below) or if you are using regular expressions (see below).
- You have selected the Match case check box option. Case refers to whether the letters which make up the search string are ‘UPPER CASE’ , ‘lower case’, or a mixture of the two. Rc001, for example, is considered to be different to RC001 when the Match case option is selected.
- The Direction of the search is correct, given your current row position in the file. The SELECTION option is enabled if you have selected a block of rows in the file. If rows are selected, the direction of the search begins at the first selected (highlighted) row in the grid.
- You want to Search all fields or just the field currently selected in the editor window.
- You want to Use regular expressions. A regular expression is a search string that uses special characters to match patterns of text. You can use them as an alternative to wildcards.
Wildcards
You can use wildcards to select multiple files, find field values in a file, or filter the selection when creating colour, hatch, or symbols sets:
Meaning | Char | Example | Finds |
---|---|---|---|
Match any number of characters. | * | R* | R, RA, R123, RCH02, etc. |
Match any number of characters preceding suffix.. | * | *ABC | DEFABC |
Match prefix followed by any number of characters (same as ^ABC) | * | ABC* | ABCDEF |
Match any single alphabetic character. | ? | R?C | R1C, R C, ROC, etc. |
Match any numbers of characters except zero. | + | R+ | R1, RA, RABC, etc. |
Match any string containing a given substring (same as *ABC*) | $ | $R | ARC, ROC, BAR, 94RC02, etc. |
Match any string NOT containing a given substring. | ! | !R | 1, 20, ABC, etc. |
Match substring at start of string (same as ABC*) | ^ | ^ABC | ABC, ABCDEF, etc. |
Regular expressions
Character | Description | Find | Matches |
---|---|---|---|
. | Any single character |
a.e |
ave, ale, ate, etc. |
* |
Zero or more occurrences of the preceding characters |
a*b |
b, ab, aaab, etc. |
+ |
One or more occurrences of the preceding characters |
a+b |
ab, aaab, etc. |
? |
Zero or one occurrence of the preceding characters |
ca?b |
cb, cab, etc. |
{n}, {n,m}
|
A single character can be repeated a specific number of times: a{n} Matches 'a' repeated exactly n times a{n,} Matches 'a' repeated n or more times a{n, m} Matches 'a' repeated between n and m times inclusive |
a{2,3}
|
aa, aaa
|
| | Matches either of its arguments. Parenthesis can be used: | abc|def ab(d|ef) |
abc, def abd, abef |
[] ^ |
Defines a set or range and matches any members of the set or range: ^ will match any character that is NOT in the specified set or range: |
[abc] [a-d] [^a-d] |
a, b, c a, b, c, d e, f, g, etc. |
Close dialog on find
Select this option to close the Find dialogue as soon as the first instance of the search string is found. To repeat the search later, you can select Edit | Find Next (Ctrl+Shift+F) and Edit | Find Previous from the menu.
Find Previous
Use the Find Previous button to locate the previous occurrence of the value or search string entered.
Find Next
Use the Find Next button to locate the next and successive occurrences of the value or search string you have entered.