# GNU rx

> regular expression library

**Wikidata**: [Q113434694](https://www.wikidata.org/wiki/Q113434694)  
**Source**: https://4ort.xyz/entity/gnu-rx

## Summary
GNU rx is a free software library for working with regular expressions, developed as part of the GNU Project. It replaced the earlier GNU regex library but has since been superseded by Gnulib. GNU rx is designed to provide robust pattern-matching capabilities for software development.

## Key Facts
- GNU rx is a regular expression library and a component of the GNU Project.
- It is free software, allowing users to run, study, modify, and distribute it.
- The library replaced GNU regex but was later replaced by Gnulib in 2022.
- Official website: [https://www.gnu.org/software/rx/](https://www.gnu.org/software/rx/) (in English).
- GNU rx is classified as a software library, GNU package, and free software.
- It has an entry in the Free Software Directory under the name "Rx".
- The GNU Project, which GNU rx is part of, was launched on September 27, 1983.

## FAQs
### Q: What is GNU rx used for?
A: GNU rx is used for working with regular expressions in software development, enabling pattern matching and text processing.

### Q: Is GNU rx still actively maintained?
A: As of 2022, GNU rx has been replaced by Gnulib, which incorporates its functionality, indicating it is no longer the primary tool for this purpose.

### Q: How does GNU rx relate to the GNU Project?
A: GNU rx is one of the many free software packages developed under the GNU Project, aligning with its mission to provide freely usable software.

## Why It Matters
GNU rx played a role in the GNU ecosystem by providing regular expression support, a critical feature for text processing in applications. Its replacement by Gnulib reflects a shift toward consolidated, reusable code libraries in free software development. By offering a libre alternative for pattern matching, GNU rx contributed to the broader goal of software freedom, ensuring developers could avoid proprietary dependencies. Its history also illustrates the evolution of GNU tools, emphasizing modularity and collaboration through projects like Gnulib.

## Notable For
- Replaced the earlier GNU regex library, streamlining regular expression handling in GNU software.
- Superseded by Gnulib, demonstrating the GNU Project’s focus on maintaining efficient, shared codebases.
- Part of the GNU Project’s comprehensive suite of free software tools.
- Featured in the Free Software Directory, ensuring visibility and accessibility for developers.

## Body
### Overview
GNU rx is a software library focused on regular expression processing. It operates under the GNU Project’s framework, adhering to free software principles that permit unrestricted use, modification, and distribution.

### History
- **Replacement of GNU regex**: GNU rx was introduced to supersede the older GNU regex library, aiming to improve or consolidate regular expression functionality.
- **Transition to Gnulib**: By 2022, GNU rx itself was decommissioned in favor of Gnulib, which integrated its core functionality. This shift aligns with Gnulib’s role as a centralized repository for reusable GNU code.

### Technical Details
- **Functionality**: The library supports regular expression matching, a fundamental feature for text manipulation in programming.
- **Licensing**: As free software, GNU rx grants users the freedoms to run, study, modify, and redistribute the code, promoting transparency and collaboration.
- **Current Status**: While GNU rx is no longer the primary tool, its legacy persists through Gnulib, ensuring continued support for regular expressions in GNU and other free software projects.

### Relationships
- **Part of**: GNU Project (launched in 1983).
- **Replaced by**: Gnulib (as of 2022).
- **Replaces**: GNU regex (now deprecated).

## References

1. [Source](https://www.gnu.org/software/regex/)
2. [Source](https://www.gnu.org/software/rx/)