SearchRegexMatcher
Unofficial
A regular expression matcher. Matching compiles its source with gm or gmi.
Import:
import type { SearchRegexMatcher } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface SearchRegexMatcher extends SearchMatcherExtends: SearchMatcher
Properties
| Property | Type | Description | |
|---|---|---|---|
| matchedTokens | SearchQueryToken[] | The query tokens this matcher consumed while the query was parsed. (Inherited from SearchMatcher) | |
| regex | string | The regular expression source, without delimiters or flags. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| eatToken(state) | void | Consumes the parser's current token, recording it in SearchMatcher.matchedTokens. (Inherited from SearchMatcher) | |
| getContext(offset) | null | SearchMatcherTokenContext | Finds the matcher that owns the query token at a cursor offset. (Inherited from SearchMatcher) | |
| getInfo() | string | Describes this matcher, as shown by the search view's "Explain search term". (Inherited from SearchMatcher) | |
| match(context) | null | SearchMatchResult | undefined | Matches this node against a context. (Inherited from SearchMatcher) | |
| requiredInputs() | SearchRequiredInputs | The inputs this matcher needs to evaluate a file. (Inherited from SearchMatcher) |
Links to this page: