Yes, the parenthesis, means to store that as a group, which can be inserted in the replace, hence the \1 in the replace (meaning the first saved group, and in this case our only saved group)
Edit: we're storing the chapter number to be used in the replace
|