Skip to content

Instantly share code, notes, and snippets.

@smeech
Created January 31, 2025 16:26
Show Gist options
  • Select an option

  • Save smeech/083dd6c0a765f21a6af1eb4cbd2f8ca3 to your computer and use it in GitHub Desktop.

Select an option

Save smeech/083dd6c0a765f21a6af1eb4cbd2f8ca3 to your computer and use it in GitHub Desktop.
[Case insensitive + word: true] A case-insensitive trigger expansion with word: true functionality. Triggered by "example ????", "EXAMPLE ?????", "exaMPLe ????" etc. #espanso #regex
# A case-insensitive trigger expansion with word: true functionality.
# Triggered by "example ????", "EXAMPLE ?????", "exaMPLe ????" etc.:
- regex: (?i)\bexample(?P<w>\W)
replace: Something{{w}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment