What does \d do in this example?
/Chapter (\d+)\.\d*/
In what context?
In a regular expression, it matches a digit (0-9).
Edit, according to your comment:
It matches any string starting with Chapter, followed by digits, then a dot, then a number of digits. Like Chapter 1.0 and Chapter 12.01.
/Chapter (\d+)\.\d*/ <- how is it used?Chapter 1.0 and Chapter 12.01. You should update your original question with that one.If it is in a regular expression (match or replace or split) or a /.../ string then it probably means match any digit 0-9. Please provide the code you see it in so we can be sure.
/Chapter (\d+)\.\d*/ <- how is it used?Chapter followed by space, then one or more digits (\d+) (these first digits are captured to $1 I don't know if you are using $1 or ignoring it). After that it matches a dot \., then it is allowed but not required to have digits after the dot \d*