Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LittlePeter
on Jan 10, 2018
|
parent
|
context
|
favorite
| on:
Ftfy – fix Unicode that's broken in various ways
Note that when using GNU grep (version 2.25) you have to use -P flag for Perl compatible regular expressions. E.g.:
echo "lörem ipsum" | grep -P "[^ -~]" --color
and not
echo "lörem ipsum" | grep "[^ -~]" --color
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
echo "lörem ipsum" | grep -P "[^ -~]" --color
and not
echo "lörem ipsum" | grep "[^ -~]" --color