Image ID Quiz
The treeview can be used to manually filter out specific families, genera, and species. To avoid checking dozens of check boxes, a filter string can be provided to automatically check or uncheck multiple families or genera at once. If a family or genus matches the filter string, it will be checked. Otherwise, it will be unchecked. The following make matching multiple items easier:
- * is a wildcard and matches anything
- , separates multiple filters
- [ ]'s create a set of letters and allows ranges
- ^ inside [ ]'s negates the set
The following highlights some of the most useful examples:
| Filter | Meaning |
|---|---|
| aceraceae,meliaceae,cactaceae | Match these three items |
| a* | Match items starting with an "a" |
| l*,f*,r* | Match items starting with an "l", "f", or "r" |
| [lfr]* | Match items starting with an "l", "f", or "r" |
| [^lfr]* | Match items NOT starting with an "l", "f", or "r" |
| [lf-r]* | Match items starting with an "l" or a letter between "f" and "r" |
| [^lf-r]* | Match items NOT starting with an "l" or a letter between "f" and "r" |
| cac* | Match items start with "cac" |
| *cac* | Match items that contain "cac" |
| *cac | Match items that end with "cac" |
| [a-e]*,*iu*,*ing | The above can all be combined in various ways |
Advanced version:
The filter strings use Javascript's regular expression functionality.
If the first character of a filter is '#', the string will be passed through as a regular expression literal.
The last example could be rewritten as: #/^[a-e].*$|^.*iu.*$|^.*ing$/i
Full documentation.