O'Reilly logo
  • Raffi Mohammed thinks this is interesting:

s/\(See Section \)\([1-9][0-9]*\.[1-9][0-9]*\)/\1\\fB\2\\fP/

From

Cover of sed & awk, 2nd Edition

Note

With the -r flag for sed an extended regular expression can be interpreted. For example in this in expression there is no need to escape the parentheses.