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

Regex match a period #159

Closed
sjackman opened this issue Oct 17, 2017 · 3 comments
Closed

Regex match a period #159

sjackman opened this issue Oct 17, 2017 · 3 comments

Comments

@sjackman
Copy link
Contributor

sjackman commented Oct 17, 2017

I'd expect \\. to match a period. Neither \. nor \\. work. [.] does work.

❯❯❯ printf "hi\na.b\nbye\n" | mlr -p filter '$1 =~ "\."'
❯❯❯ printf "hi\na.b\nbye\n" | mlr -p filter '$1 =~ "\\."'
❯❯❯ printf "hi\na.b\nbye\n" | mlr -p filter '$1 =~ "[.]"'
a.b
@johnkerl
Copy link
Owner

:( Oddly I ran into this just today. Very weird it's not working. I'm just wrapping the C regex library; maybe I bungled something backslashwise.

@sjackman
Copy link
Contributor Author

🤔

@sjackman
Copy link
Contributor Author

Thanks for the quick fix, John.

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

2 participants