File: README.md

package info (click to toggle)
ugrep 3.3.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,684 kB
  • sloc: cpp: 47,319; sh: 1,164; ansic: 1,156; makefile: 98; java: 6
file content (16 lines) | stat: -rw-r--r-- 585 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Ruby patterns
=============

Caveat: string matching is limited to quoted strings, `%Q/.../`, `%Q(...)`,
`%q/.../` and `%q(...)`.  The latter forms could be matched more generally
using back references (not yet supported) and lazy quantifiers, using regex
`%q(.).*?\1`.

- `classes` matches class definition lines
- `comments` matches comments
- `defs` matches function definition lines
- `modules` matches module lines
- `names` matches identifiers (and keywords)
- `strings` matches strings
- `zap_comments` removes comments from matches
- `zap_strings` removes strings from matches