jager
Version, currently 0.4.05 versions
- 0.5.0latestMar 15, 2019
- 0.4.1not indexedFeb 2, 2021
- 0.4.0not indexedFeb 2, 2021
- 0.3.0not indexedFeb 2, 2021
- 0.2.1not indexedFeb 2, 2021
github.com/omarroth/jager
Reverse regular expression engine
15 stars
0 dependents
License: GPLv3
Nothing has been indexed for 0.4.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
jager:
github: omarroth/jager
version: ~> 0.4.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# jager
[](https://github.com/omarroth/jager/releases)
> This is a project built with [marpa](https://github.com/omarroth/marpa).
Given a regular expression, generate a string that matches that expression
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
jager:
github: omarroth/jager
```
## Usage
```crystal
require "jager"
regex = /\d{3}-\d{3}-\d{4}/
engine = Jager::Engine.new
input = engine.generate(regex)
input # => "754-327-6740"
```
## Examples
| Name | Regex | Output |
| ----------- | -------------------------------------------------------------- | -------------------------------------- |
| US Phone | /\d{3}-\d{3}-\d{4}/ | "019-586-1821" |
| UUID | /[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/ | "0d007d29-f50b-4763-f40e-102fcaa77a1b" |
| JSON Number | /-?[1-9]\d+(.\d+)?([eE][+-]?\d+)?/ | "85.2292e+6745508109" |
| US Dollar | /\\$([1-9]{1}[0-9]{0,2})(,\d{3}){0,4}(.\d{2})?/ | "$7,239,557,686.39" |
## Notes
- Jager does **not** support:
- anchors (`$`, `^`),
- extended character classes (`[[:digit:]]`, `[[:alpha:]]`)
## Contributing
1. Fork it ( https://github.com/omarroth/jager/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [omarroth](https://github.com/omarroth) Omar Roth - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.0- Tagged
- Feb 2, 2021
- Commit
46df8397775c- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/omarroth/jager
Metadata
- Created
- Aug 13, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 5