[PR #998] semver: Update FAQ entry on regular expressions #856

Open
opened 2026-02-17 12:20:28 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/semver/semver/pull/998
Author: @har7an
Created: 1/20/2024
Status: 🔄 Open

Base: masterHead: docs/posix-regex-in-faq


📝 Commits (1)

  • a86e97a semver: Update FAQ entry on regular expressions

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 semver.md (+12 -2)

📄 Description

with a third variant that works without non-capturing groups and is compatible with POSIX regex (i.e. for use in bash). This originates from an issue I opened earlier, found here: https://github.com/semver/semver/issues/981

There is a small repo which contains the terse form of the regex along with a more human-readable one and a bash script that demonstrates and runs the regex against the set of test strings from regex101. I also went and created a snippet for this regex on regex101.

I only just noticed that there is a long-standing open PR which adds exactly the same regex (but with less explanation) to the FAQ.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/semver/semver/pull/998 **Author:** [@har7an](https://github.com/har7an) **Created:** 1/20/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `docs/posix-regex-in-faq` --- ### 📝 Commits (1) - [`a86e97a`](https://github.com/semver/semver/commit/a86e97a7d63c0e5635e164d3ae09e13a89f50c15) semver: Update FAQ entry on regular expressions ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `semver.md` (+12 -2) </details> ### 📄 Description with a third variant that works without non-capturing groups and is compatible with POSIX regex (i.e. for use in bash). This originates from an issue I opened earlier, found here: https://github.com/semver/semver/issues/981 There is a [small repo][2] which contains the terse form of the regex along with a more human-readable one and a bash script that demonstrates and runs the regex against the [set of test strings from regex101][1]. I also went and [created a snippet for this regex on regex101][4]. I only just noticed that there is a [long-standing open PR][3] which adds exactly the same regex (but with less explanation) to the FAQ. [1]: https://regex101.com/r/vkijKf/1/ [2]: https://github.com/har7an/bash-semver-regex [3]: https://github.com/semver/semver/pull/724 [4]: https://regex101.com/r/7XA2jr/1 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-17 12:20:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#856