Test, validate and match regular expressions
This JavaScript regular expression is designed to parse Bible references for reading accountability tracking. It uses named capturing groups to extract the book name, the starting chapter (`from`), and an optional ending chapter (`to`). It is ideal for parsing simple strings like "John 1" or "Genesis 1-3". However, note that the `\S+` pattern assumes the book name contains no spaces, which may require adjustments for books like "1 John".