Pomsky

pomsky — regex DSL that compiles to regular expressions

javimosch Updated 57 repo stars

File contents

pomsky Plugin

pomsky is a regular expression DSL that compiles regex-like syntax into standard regular expressions.

Quickstart

# Compile a pomsky pattern to regex
pomsky '([word]+) is "cool"'

# Test a pattern against input
pomsky 'start "hello" end' --test "hello world"

# Output as JSON
pomsky 'start .+ end' --json

javimosch/supercli commit a5f5fa3b58

Frequently asked questions

npx get-skill add javimosch/pomsky