Registry / testing / regexp-examples

regexp-examples

JSON →
library1.6.0rbrubygemsunverified

Generates example strings that match a given regular expression.

gem install regexp-examples
INSTALL
IMPORT
SIG · REGEXP-EXAMPLES
R
regexp-examples
testingrubyv1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RegexpExamples
require 'regexp-examples'

Generate all matching strings for a regex

require 'regexp-examples' /hello (world|ruby)/.examples # => ["hello world", "hello ruby"]
Debug
Known issues
gotchaCan generate extremely large lists for complex regexes
fix
Use .random_example instead of .examples for large patterns
affects: >= 0
Upgrade
Version history
1.6.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
regexp-examples — gem install regexp-examples · libregistry