Xo
Dev tools
command line text processing
SHOW HN2016
8points
7comments
#1,991of 2,264 in 2016
Top 88%of 2016 by points
How HN took it
QuietFewer than 5 comments about the project
0 positive, 3 neutral or asking, 0 mixed, 0 critical, out of 3 comments about the project.
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful regex-based examples such as config parsing and fallback values
From 1 comment
Some fun examples of what you can do with `xo`, Hello world: ``` echo 'Hello! My name is C3PO, human cyborg relations.' | xo '/^(\w+)! my name is (\w+)/$1, $2!/i' # => Hello,…
ezekg on HN
Objections
Not line-oriented; reads full stdin before matching in some cases
From 2 comments
Obviously it is not line-oriented. So the selling points are? 1. custom delimiters 2. special syntax for fallback values 3. extended regular expression with Unicode support More?
voaie on HNBy mentioning sed and line-oriented, I means you don't have to read all content of stdin (i.e. full buffering) before matching.
voaie on HN
Questions
What does Go regex offer over Perl regex?
From 1 comment
I typically fall back to perl when sed isn't quite versatile/cross-platform enough. What do Go regular expressions offer over Perl regular expressions? (Performance, I imagine.)
oleks on HN
What are the selling points beyond sed?
From 1 comment
Obviously it is not line-oriented. So the selling points are? 1. custom delimiters 2. special syntax for fallback values 3. extended regular expression with Unicode support More?
voaie on HN
Alternatives named
Perl
From 1 comment
I typically fall back to perl when sed isn't quite versatile/cross-platform enough. What do Go regular expressions offer over Perl regular expressions? (Performance, I imagine.)
oleks on HN
sed
From 2 comments
I typically fall back to perl when sed isn't quite versatile/cross-platform enough. What do Go regular expressions offer over Perl regular expressions? (Performance, I imagine.)
oleks on HNObviously it is not line-oriented. So the selling points are? 1. custom delimiters 2. special syntax for fallback values 3. extended regular expression with Unicode support More?
voaie on HN