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

easy-regex

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-regex

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

easy-regex-gem

easy-regex gem allows you to use and create regular expressions in a very easy way. You can also create custom regular expressions.

Requirements

  • Make it easy to obtain regular expressions.
  • Allow to create custom regular expressions.
  • To create custom regular expressions, certain parameters must be passed.
  • The gem should have the following common regular expressions:
    • Url.
    • Domain.
    • Email.
    • Password.
    • Name.
    • Phone number.
    • Address
  • Regular expressions must be classified according to their function.

Use

  • Install the gem easy-regex gem install easy-regex-x.x.x.gem
  • Use the gem require 'easy-regex'
  • Call the module ERegex follow by the class (Internet|Personal) and the regex ERegex::Internet.email
    • Classification
    • Internet
      • email
        • email_custom(domain->String, length->Integer)
      • password
        • password_custom(length->Integer, start_with->String, end_with->String)
      • domain
        • domain_custom(length->Integer, end_with->String)
      • url
    • Personal
      • name
      • phone
        • phone_custom(phone_region->Boolean, spaces->Boolean)
      • address

FAQs

Package last updated on 11 Feb 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

  • 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