general:pattern_matching
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
general:pattern_matching [2018/06/20 02:21] – [Square Brackets ([ ])] Scott Cunliffe | general:pattern_matching [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Pattern | + | ====== Pattern |
- | TapeTrack has powerful pattern matching functionality that can be utilized globally in TapeMaster. | + | TapeTrack has powerful pattern matching functionality that can be utilized globally in [[desktop: |
+ | |||
+ | ===== TapeMaster Quick Filters ===== | ||
+ | |||
+ | TapeMaster fields can be filtered by Repository, Flags, Next Move and/or Container by using the funnel buttons on the right of the filter fields. | ||
+ | |||
+ | To use quick filters just click on the required column funnel and select the filter value. | ||
+ | |||
+ | {{tapemaster_filters.png}} | ||
Line 7: | Line 15: | ||
===== String Pattern Matching ===== | ===== String Pattern Matching ===== | ||
- | To illustrate the effects of where and how the asterisk wildcard affects search results all examples will be performed against the following volume values. | + | To illustrate the effects of where and how the asterisk wildcard affects search results all examples will be performed against the following |
100000L4, 100001L4, 100002L4, 100003L4, 100004L4, 100012L4, 100022L4, 200000L5, 200012L5, 200022L5 | 100000L4, 100001L4, 100002L4, 100003L4, 100004L4, 100012L4, 100022L4, 200000L5, 200012L5, 200022L5 | ||
Line 16: | Line 24: | ||
==== Asterisk (*) ==== | ==== Asterisk (*) ==== | ||
- | The **Asterisk is used** as a wildcard to allow string | + | The **Asterisk is used** as a wildcard to allow String |
- | * An **Asterisk** before a set of characters will show all items that end with those characters. \\ Using the filter *L4 in the volume ID field will show all volume ID's ending in L4. \\ {{: | + | * An **Asterisk** before a set of characters will show all items that end with those characters. \\ Using the filter |
- | * An **Asterisk** after a set of characters will show all items that begin with those characters. \\ Using the filter 20* in the volume ID field will display all volume ID's starting with 20. \\ {{: | + | * An **Asterisk** after a set of characters will show all items that begin with those characters. \\ Using the filter |
- | * If used on its own, the **Asterisk** will match everything and will have no effect on volumes | + | * If used on its own, the **Asterisk** will match everything and, as such, will have no effect on [[object: |
- | * Using two **Asterisks**, | + | * Using two **Asterisks**, |
- | + | | |
- | The Asterisk does not need to be used when entering a full Object-ID or when searching for [[common: | + | |
- | + | ||
- | {{: | + | |
==== Question Mark (?) ==== | ==== Question Mark (?) ==== | ||
Line 31: | Line 36: | ||
The **Question Mark** is used to indicate that any character can exist in a specific character position. | The **Question Mark** is used to indicate that any character can exist in a specific character position. | ||
- | Using the filter ??????L4 in the volume ID field will display all eight character volume ID's ending in L4. | + | Using the filter |
{{: | {{: | ||
Line 43: | Line 48: | ||
When multiple characters are put in a **Square Bracket**, any of the characters listed will be displayed at the specified character position. | When multiple characters are put in a **Square Bracket**, any of the characters listed will be displayed at the specified character position. | ||
- | Using the filter, in the volume ID field, [12]????? | + | Using the filter, in the [[object:volume|Volume-ID]] field, |
**Range Of Characters** | **Range Of Characters** | ||
- | Using the filter, in the volume ID field, [12]????? | + | Using the filter, in the [[object:volume|Volume-ID]] field, |
{{: | {{: | ||
Line 58: | Line 63: | ||
When two or more characters are placed between **Square Brackets** and separated by **Vertical Bars**, the **Vertical Bar** will act as the word " | When two or more characters are placed between **Square Brackets** and separated by **Vertical Bars**, the **Vertical Bar** will act as the word " | ||
- | Using the filter, in the volume ID field, ?????? | + | Using the filter, in the [[object:volume|Volume-ID]] field, |
{{: | {{: | ||
Line 66: | Line 71: | ||
When two characters are placed between **Square Brackets** and separated by a **Hyphen**, any character alphanumerically between the two characters inclusive will display. | When two characters are placed between **Square Brackets** and separated by a **Hyphen**, any character alphanumerically between the two characters inclusive will display. | ||
- | Using the filter, in the volume ID field, ?????? | + | Using the filter, in the [[object:volume|Volume-ID]] field, ?????? |
{{: | {{: | ||
Line 74: | Line 79: | ||
When the **Exclamation Point** is placed immediately following the left **Square Bracket** in a set of **Square Brackets**, any character except for the characters listed after the **Exclamation Point** will display. This functionality also works with **Multiple Characters**, | When the **Exclamation Point** is placed immediately following the left **Square Bracket** in a set of **Square Brackets**, any character except for the characters listed after the **Exclamation Point** will display. This functionality also works with **Multiple Characters**, | ||
- | Using the filter, in the volume ID field, ?????? | + | Using the filter, in the [[object:volume|Volume-ID]] field, |
{{: | {{: | ||
Line 88: | Line 93: | ||
=== Syntax === | === Syntax === | ||
- | * **YYYY-MM-DD:** ISO Date format | + | ^ Syntax |
- | * ***:** Today | + | | YYYY-MM-DD |
- | * ***[+-]x:** Today + or - x days | + | | * | Today | |
- | * **M:** The first day of this month | + | | W | This Week | |
- | * **m:** The last day of this month | + | | P | The oldest Date | |
- | * **Y:** The first day of the year | + | | F | The most Future Date | |
- | * **y:** The last day of the year | + | | *±x |
- | * **M+-x: | + | | M | The first day of this month | |
- | * **M+-x+-y: | + | | m | The last day of this month. | |
- | * **Y+-x: | + | | Y | The first day of the year. | |
- | * **Y+-x+-y: | + | | y | The last day of the year. | |
- | * **Y+-x+-y+-z: | + | | M±x |
+ | | M±x±y | ||
+ | | Y±x | ||
+ | | Y±x±y | ||
+ | | Y±x±y±z | ||
=== Examples === | === Examples === | ||
- | |*-10 | 10 days ago | | + | ^ Date Syntax ^ Description ^ |
- | |Y | + | |*-10 |
- | |M-0 | + | | W-10 |
- | |y-1 | the last day of last year | | + | | W+2 | 2 Weeks in the future | |
- | |Y-1+3-1 | + | | M | The first day of this month | |
+ | | M-1 | The first day of last month | | ||
+ | |Y | The beginning of this year | | ||
+ | |y-1 | The last day of last year | | ||
+ | |Y-1+3-1 | ||
+ | | P | The oldest date | | ||
+ | | P+50 | The oldest date plus 50 days | | ||
+ | | F | The most future date | | ||
+ | |||
+ | |||
+ | ^ Date Range Syntax ^ Description ^ | ||
+ | | *-10:* | 10 days ago until today | | ||
+ | | W-2:* | Two weeks ago until today | | ||
+ | | M-4:W+2 | First day of four months ago until two weeks from today | | ||
+ | |||
+ | === Pattern Matching === | ||
+ | |||
+ | ^ Syntax ^ Description ^ | ||
+ | | ???? | 4 Character long | | ||
+ | | ????* | 4 or more long | | ||
+ | | !(?*) | Empty string, | ||
+ | |||
+ | |||
+ | {{tag> date technote tapemaster lite cli}} | ||
general/pattern_matching.1529461313.txt.gz · Last modified: 2025/01/21 22:07 (external edit)