Good evening, everyone.
I would like to know a regular expression to get the following information:
Numbering and title of a chapter.
Example:
number = 1.
title = INTRODUCTION
1.1. GENERAL OBJECTIVE
number = 1.1.
title = GENERAL OBJECTIVE
1.2. SPECIFIC OBJECTIVE
number = 1.2.
title = SPECIFIC OBJECTIVE
I need this to generate a table of contents in the following format:
1.1. | GENERAL OBJECTIVE | PAGE
1.2. | SPECIFIC OBJECTIVE | PAGE
That is, the regular expression should be able to recognize numbers followed by periods in the following generic format:
Primary Title = > x.
Secondary Title = > x.x.
Tertiary Title = > x.x.x.
Quaternary title = > x.x.x.x.
And so on.
I thank you for your attention. Hugs to all.