File: README.md

package info (click to toggle)
ugrep 7.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,008 kB
  • sloc: cpp: 69,034; ansic: 9,848; sh: 1,897; makefile: 312; java: 6; xml: 6
file content (16 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (3)
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) not inside strings and comments
- `strings` matches strings
- `zap_comments` removes comments from matches
- `zap_strings` removes strings from matches