File: basic_RE

package info (click to toggle)
lsof 4.93.2%2Bdfsg-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,936 kB
  • sloc: ansic: 75,924; sh: 12,859; makefile: 1,686; perl: 1,146; awk: 214
file content (20 lines) | stat: -rw-r--r-- 1,284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
       Obsolete (``basic'') regular expressions differ in several
       respects.   `|',  `+', and `?' are ordinary characters and
       there is  no  equivalent  for  their  functionality.   The
       delimiters  for bounds are `\{' and `\}', with `{' and `}'
       by themselves ordinary characters.   The  parentheses  for
       nested  subexpressions are `\(' and `\)', with `(' and `)'
       by themselves ordinary characters.   `^'  is  an  ordinary
       character  except at the beginning of the RE or the begin<AD>
       ning of a parenthesized subexpression, `$' is an  ordinary
       character  except  at  the  end  of the RE or the end of a
       parenthesized subexpression, and `*' is an ordinary  char<AD>
       acter  if  it  appears  at  the beginning of the RE or the
       beginning of a parenthesized subexpression (after a possi<AD>
       ble leading `^').  Finally, there is one new type of atom,
       a back reference: `\' followed by a non-zero decimal digit
       d  matches  the same sequence of characters matched by the
       dth parenthesized subexpression (numbering  subexpressions
       by  the  positions  of  their opening parentheses, left to
       right), so that (e.g.) `\([bc]\)\1' matches `bb'  or  `cc'
       but not `bc'.