Skip to content

Modern Fs PatternWildcardAt

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Filesystem › Filesystem Library › PatternWildcardAt

PatternWildcardAt

Returns the offset of a pattern's first wildcard, or -1 if it has none.

Syntax

PatternWildcardAt( pattern )

Notes

  • offset of the first wildcard, or -1

Examples

#import "std/fs"
using fs

'' The offset of the first wildcard, or -1 when the pattern is a plain
'' path with nothing to expand
print PatternWildcardAt( "src\*.tiko" )    '' 5
print PatternWildcardAt( "src\main.tiko" ) '' -1

'' What Glob uses to decide how much of a pattern is a fixed directory
'' prefix it can walk to directly

Library: Filesystem Library
Category: Filesystem
Documented under: Glob

Clone this wiki locally