A.4 Justifying Tagged Expressions

To justify a tagged regular expression, use the following syntax in the replacement string:

UNIX Non-UNIX

\(width,n) $(width,n)

The width is the field size (negative for left justification), and n is the number of the tagged expression to justify.

PWB justfies the tagged text according to the following rules:

If width is greater than the length of the tagged text, PWB right-justifies the tagged expression within the field and pads the field with leading spaces.

If width is negative and its magnitude is greater than the length of the text, PWB left-justifies the expression and pads the field with trailing spaces.

If width is less than or equal to the length of the text, PWB uses the whole text and does not pad the field. PWB never truncates justified text.