Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

RegexpBench

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

RegexpBench

  • 0.5.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

== Welcome to Regexp Bench

Basically, start up 'regexp-bench' You'll get an interactive command line, complete with a help function.

An example exchange with regexp-bench:

$ bin/regexp-bench
> load_matches do
do            doc/          dog-cat.yaml
> load_matches dog-cat.yaml
> list_matches
Match: dog
Don't Match: cat
> test .o.
Regexp compiles as: (?-mix:.o.)
Matching "dog"
  Successful match:
  Before:
  m[0]: dog
  After:
Matching "cat"
  Successful null match
> test ...
Regexp compiles as: (?-mix:...)
Matching "dog"
  Successful match:
  Before:
  m[0]: dog
  After:
Matching "cat"
  ERROR: match:
  Before:
  m[0]: cat
  After:
> help
clear_matches
dont_match <string> [<string>]
help <terms> [<terms>]
list_matches
load_matches <load_from> [<load_from>]
match <string> [<string>]
quit
redo
remove <string> [<string>]
save_matches <save_to> [<save_to>]
test <regex> [<regex>]
undo
> quit

Still not as pretty as I'd like it to be, but we'll get there before 1.0.

== TODO

  • Better help documentation!
  • Rspec file output
  • Code generation based on a successful test

FAQs

Package last updated on 25 Jul 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc