Socket
Book a DemoInstallSign in
Socket

regular_expression

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regular_expression

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

RegularExpression

Build Status

A regular expression engine written in Ruby.

Installation

Add this line to your application's Gemfile:

gem "regular_expression"

And then execute:

$ bundle install

Or install it yourself as:

$ gem install regular_expression

Usage

To create a regular expression pattern, use:

pattern = RegularExpression::Pattern.new("ab?c")

Patterns can be queried for whether or not they match a test string, as in:

pattern.match?("abc") # => true
pattern.match?("ac") # => true
pattern.match?("ab") # => false

Development

After checking out the repo, run bundle install to install dependencies. Then, run bundle exec rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kddeisz/regular_expression. For information about how to contribute to the development of this gem, see the CONTRIBUTING.md document.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 13 Jul 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.