Using wildcards in file searches
A wildcard is a symbol representing one or more characters (*, +, ?) or a logical operator (!, $). They are used to define search strings to find field values in a file, or to select files in a file selection box. There are five wildcards that you can use:
You can use wildcards to find field values in a file, or filter the selection when selecting files.
Meaning | Char | Example | Finds |
---|---|---|---|
Match any number of characters. | * | R* | R, RA, R123, RCH02, etc. |
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 character. | $ | $R | ARC, ROC, BAR, 94RC02, etc. |
Match any string NOT containing a given character. | ! | !R | 1, 20, ABC, etc. |
Literals
\ is a special character which indicates that the character directly following it should be interpreted literally.
This is useful when special characters in a string (e.g. single or double quotes, or wildcards) need to be treated literally rather than as special characters.
To treat the backslash character literally, use two backslashes.
Example | Finds |
---|---|
1*\$ | 10$, 100$, 1000$, etc. |
\\D* | \Data, \Documents, etc. |
Note: The * and ? wildcards, described above, can be used anywhere in Micromine, even when querying SQL databases that also accept % and _ (underscore) wildcard characters.
Wildcards can also be used to set a drillhole database filter or to select wireframes in a wireframe set. See: Wildcards
As an alternative to wildcards, Regular Expressions can be used when using the Find and Replace functions in the File Editor.