Skip to main content

Glob Pattern ↔ regex-like wildcard Syntax to match dir/filename

Source: globster.xyz/

aka Glob

*

Glob to match anything EXCEPT slash || hidden

**

Glob to match ≥0 dir

{a,b}

Brace Expansion Glob to list match options as CSV

?

Glob to match single char only

? cf Regex {1}

[abc]

Glob to match ONE char in set

[abc] cf Regex Character Class

[a-z]

Glob to match ONE char in class range

[a-z] cf Regex [a-z]{1}

References

  1. ?Glob to match single char only

  2. **Glob to match ≥0 dir

  3. *Glob to match anything EXCEPT slash || hidden

  4. [abc]Glob to match ONE char in set

  5. [a-z]Glob to match ONE char in class range

  6. GlobbingAlgo to match Wildcard Character pattern ie Glob || regex

  7. content: string[] ↔ MUST to set file/folder to scan via Glob. set entry _index.html & any script files using Tailwind

  8. .storybook/main.js ↔ storybook config file to set Glob to detect new stories Story Addons & use index.css

  9. purge: [] ↔ to set Glob Pattern to remove unused CSS styles from final bundle

  10. setup [tailwind.config.cjs](tailwind-config-cjs) ↔ add Glob to include/exclude dirpath/filetype & define custom utilities

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: {
extend: {},
},
plugins: [],
}
  1. {a,b}Brace Expansion Glob to list match options as CSV