Hacker GitHub

← All repos

ezekg/xo

View on GitHub ↗ ★ 185 Go

Command line utility that composes regular expression matches.

4 mentions on Hacker News by 2 people: 3 stories, 1 comment · first 2016-01-14 · latest 2017-10-27

Mentions per year 4 mentions · busiest year 2016 (3)
20082026
  1. I built a command line tool awhile back for doing things like this: https://github.com/ezekg/xo You could do something like, echo 'Joanna likes apples' | xo '/^(\w+) (?:likes|prefers) (\w+)/{"user":"$1","fruit":"$2"}/i'