Skip to content

Correct exercise solutions - #256

Open
3kori wants to merge 1 commit into
LibraryCarpentry:mainfrom
3kori:Fix/exercise-solutions
Open

3kori wants to merge 1 commit into
LibraryCarpentry:mainfrom
3kori:Fix/exercise-solutions

Conversation

@3kori

@3kori 3kori commented Sep 5, 2026

Copy link
Copy Markdown

Closes #255

This PR adds missing characters to some of the solutions, making them correct per the question.

  1. In "How would you find a 4-letter word that ends a string and is preceded by at least one zero?" the challenge expects any 4-letter word like "Four", "four", "FOUR", "fOuR", etc. But the current solution limits the 4-letter word to lowercase letters only.

0+[a-z]{4}\b instead of 0+[A-Za-z]{4}\b

  1. In "How would you match publication formats such as British Library : London, 2015 and Manchester University Press: Manchester, 1999?" the answer only matches the first format. It doesn't match the other format, which doesn't have a space just before the colon (:).

.* : .*, \d{4} instead of .* ?: .*, \d{4}

Details

For more guidance on how to contribute changes to a Carpentries project, please review the Contributing Guide and Code of Conduct.

Please keep in mind that lesson Maintainers are volunteers and it may be some time before they can respond to your contribution. Although not all contributions can be incorporated into the lesson materials, we appreciate your time and effort to improve the curriculum. If you have any questions about the lesson maintenance process or would like to volunteer your time as a contribution reviewer, please contact The Carpentries Team at team@carpentries.org.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🆗 Pre-flight checks passed 😃

This pull request has been checked and contains no modified workflow files, spoofing, or invalid commits.

It should be safe to Approve and Run the workflows that need maintainer approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect solution in a couple of exercises.

1 participant