Saner Syntax
Pomsky is designed to be easy to write and understand.
Saner Syntax
Pomsky is designed to be easy to write and understand.
Instant Feedback
Syntax highlighting, autocompletion, and diagnostics in VSCode.
Built-in Tests
Automated tests catch mistakes, and double as documentation.
Feature Rich
Pomsky has powerful features you won’t find anywhere else.
Great Compatibility
Pomsky is transpiled to normal RegExp’s, so you can use it anywhere.
Optimized Output
You can be confident that your expressions perform well.
See at a glance what Pomsky looks like.
'Hello' [space]+ ('world' | 'pomsky')
Hello\s+(?:world|pomsky)
^ % 'foo' % $
^\bfoo\b$
'hello'{1,5} 'world'*
(?:hello){1,5}(?:world)*
['acd[]' 'p'-'s' digit]!['^'] # negated
[acd[\]p-s\d][^\^]
[s U+15 U+FEFF Greek Decimal_Number]
[\s\x15\uFEFF\p{Greek}\p{Nd}]
:([space]) :named(.)
(\s)(?<named>.)
(<< 'foo' | 'bar')(!>> 'foo' | 'bar')
(?<=foo|bar)(?!foo|bar)
range '0'-'255'
0|1[0-9]{0,2}|2(?:[0-4][0-9]?|5[0-5]?|[6-9])?|[3-9][0-9]?
let number = '-'? [digit]+;let op = ['+-*/'];number (op number)*
-?\d+(?:[+\-*/]-?\d+)*