79269194

Date: 2024-12-10 17:42:02
Score: 1.5
Natty:
Report link

When you add a '?' making the second group optional, your group 1 will match as much as possible (see about Greedy or Lazy). So, in your group 1, adding a '?' like that (.*?) will make it matches as less as possible.
Then add a $ to match until the end of the line.

1\.2\.\d\s+(.*?)(?:\s*\((\d+-\d+-\d+-[A-Z])\))?$
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When you add a
  • Low reputation (0.5):
Posted by: Wace