GS-Base Help > Searching / Filtering Records

To Set/Modify a Field Filter

Scroll to a given field and press Ctrl+F or Ctrl+Enter or click the Search button or use the Tools > Set Search Filter command.
Filters specified for more than one field at the same time are assumed to be merged by the AND logical operator and narrow down the search results.

There are four filter types available for numeric and text fields:

Regular Expressions (RegEx)

The filter string is a data pattern based on standard regular expression syntax. You can click the "?" button to display a list of commonly used expressions. Some examples of regular expressions:

PatternMatches
abcsubstrings "abc"
.bcthree-character substrings consisting of any character followed by "bc"
\Aabcfield contents starting with "abc"
abc\zfield contents ending with "abc"
\Aabc.*123\zfield contents starting with "abc" and ending with "123", with any number of other characters in between
abc\d\zsubstrings ending with "abc" and one digit
^a\d+field contents containing a line starting with "a" and at least one digit
^a\d*field contents containing a line starting with "a" and zero or more digits
[ab]+csubstrings "abc", "aabc", "abbabc", etc., but not "c"
[ab]*csubstrings "abc", "aabc", "abbabc", etc., and "c"
[^ab]+csubstrings ending with "c" and not containing "a" or "b"
\w\d{2,3}substrings consisting of one letter followed by 2 or 3 digits
\Aab\d{2,3}cfield contents beginning with "ab", two or three digits, and "c"
abc|xyzsubstrings "abc" or "xyz"
\A\zempty fields

For more information, see PCRE regular expression syntax summary.

Plain Text (Starts With, Equal, Not Equal, ...)

The filter string represents a plain text string that is compared against the whole field contents. This filter category includes a few variants: Pattern, Equal, Not equal, Greater than, Less than, Between, And and Or.
For the Starts with, And and Or variants, the filter string can be a prefix of the compared strings and can contain the wildcard "?" and "*" characters. Any non-wildcard "?" and "*" characters must be prefixed with a tilde (~).
The remaining variants perform exact text string comparisons. For Between, And and Or, the entered filter must be a list of, respectively, two or more elements separated by spaces.

Filter stringMatches
abcfield contents beginning with "abc" ("Starts with")
?bcfield contents beginning with any character followed by "bc" ("Starts with")
*abcfield contents ending with any character followed by "abc" ("Starts with")
*all non-empty field contents ("Starts with")
50.1 100.2values equal to or between 50.1 and 100.2 ("Between", US regional numeric settings)
12/1/2012 12/31/2012dates equal to or between the specified ones ("Between", US regional date settings)
ab cd *effield contents equal to "ab", "cd", or ending with "ef" ("Or")

Formulas

The filter string represents a formula expression that can make use of all the built-in functions, operators and references to other record fields. The formulas are similar to those used in spreadsheets, with a few exceptions:

When searching, such a formula is evaluated for each record, and a given record is considered to meet the searching criteria if the formula returns a non-zero value.

To learn more about building formulas, see: Entering formulas.

Flagged Records

Searching for records flagged/marked by a given flag, which is a unique combination of field font and background colors.

Long Text, Images/Files and Code fields always use Regular Expressions to filter records. When filtering Images/Files fields, the file names are searched.

Clicking the Paste button displays a list of recently entered search strings.

To remove all specified search filters, click the (None) search key on the toolbar or use the Tools > Reset Searching command.

To Filter Records and Search for Duplicated Field Values

Scroll to a field or select a range of fields which should be searched and use the Tools > Find Duplicates command.
To find duplicated (whole) records, select an entire row by clicking the row heading or pressing Shift+Space.

To Filter Records and Display the Complement of the Current Record Set

To find the complement of the current record set (that is, all the records that are not included in the current record set), use the Tools > Find Complement command.

To Perform Full-Text Searches and Search for Patterns Occurring in Any Text and Numeric Fields

Use the Edit > Find (F3) command and, in the displayed Search Toolbar, enter the desired substring. The Find Previous/Next commands simply scroll to the subsequent found table or form cell values. The Find All command performs full-text filtering of Text and Numeric fields (Long Text fields are not included).
The Search Toolbar also enables you to replace found substrings. If you want to perform such a find-and-replace action for one field only, select the column by clicking its header.