Comments (1)
Thanks for reporting this. The docs are correct. ack should match grep on this. It has been fixed in acks 2.16 and higher, and also works correctly in ack3.
$ garage/ack-2.14 --count '(foo)\s*(bar)' tst.text
2
$ garage/ack-2.16 --count '(foo)\s*(bar)' tst.text
1
$ garage/ack-2.22 --count '(foo)\s*(bar)' tst.text
1
(Aside: It's frustrating that that somehow is not noted in the Changes file)
from ack2.
Related Issues (20)
- needs_line_scan is not getting called HOT 2
- feature: unicode normalize
- Unexpected matches for input data from a patch file HOT 14
- Add --line-number option
- ack --column -v triggers uninitialized value warning HOT 2
- Can't locate File/Next.pm in @INC (you may need to install the File::Next module) HOT 5
- Existence of file called '0' stops ack finding other files HOT 2
- --line doesn't work in filter mode HOT 2
- ack needs a code of conduct
- --smart-case is fooled by capital letters in metacharacters HOT 1
- Fix documentation for --lines HOT 1
- --line doesn't work with STDIN HOT 1
- Weird behaviour not ignoring files and searching non-files? HOT 2
- -s option has no effect when -x option is used HOT 5
- Handle Qt pro and pri files HOT 4
- ack not matching as grep -E HOT 3
- Consider backporting --help-colors and --help-rgb-colors HOT 2
- Submit patches to tldr's repo HOT 1
- Repeated capture group only highlights last instance HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ack2.