- Means Back Some Lines, Minus or Range (in Regexp)

Qedit 5.7 for HP-UX

Home Previous Next


-
Means Back Some Lines, Minus or Range (in Regexp)

Minus (-) means back a relative number of lines.

/list *-20/

Minus in the Visual home line means roll back a number of lines.

===>-10 {roll back 10 lines}

Minus in the calculator means subtract (e.g., =1010-40).

Minus (-) in a character class within regular expressions indicates a range of characters. It takes on this meaning if it appears between two other characters. If it appears at the beginning or end of the class, it is used as a literal.

/list "[a-z]" (regexp) {range of lowercase letters}

/list "[-az]" (regexp) {character class "-," "a" and "z"


Home Previous Next