Uses a more restrictive regex to find story numbers

This prevents issues where version numbers are mistakenly captured and used as
the story number.