Fix a rewrite rule

Improve version number detection in rewrite rules. Solves the bug that
manual chapters were not displayed if their name started with a digit.

See https://forge.typo3.org/issues/50631