Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option for word-boundary based match #15

Open
igalic opened this issue Aug 18, 2018 · 0 comments
Open

add option for word-boundary based match #15

igalic opened this issue Aug 18, 2018 · 0 comments

Comments

@igalic
Copy link
Owner

igalic commented Aug 18, 2018

i realized the feature that i most use in anicode[1] is grep's word-boundaries feature to limit the amount of characters it matches…

$ anicode dog

matches all DOGRA characters[2]

whereas '\bdog\b' matches…

$ anicode '\bdog\b'
1) ⺨   CJK RADICAL DOG
2) ⽝   KANGXI RADICAL DOG
3) 🌭   HOT DOG
4) 🐕   DOG
5) 🐶   DOG FACE

which, most of the time, is what i want.

That's the equivalent of passing -w to grep, so perhaps we should expose this option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant