VerbalExpressions is a JavaScript library that helps to construct difficult regular expressions. Methods have a return type of VerbalExpression except where mentioned otherwise. If there is no mention of a method’s parameters, it is to be assumed that it has none. VerEx is the function that is exported from within VerbalExpressions.js and is to be the first method in chains that describe verbal expressions. Construct and return a new instance of VerbalExpression. Used to support the new VerbalExpression() syntax in ES6 classes as mandated by the spec. You usually wouldn’t need to call VerEx().constructor(). This method will not be accessible from outside the source file since VerEx() returns an instance of the class rather than the class itself. sanitize is a static method on the VerbalExpression class. However, it is also exposed as VerEx().sanitize. Enabling control multi-line matching would cause the expression to not look for matches beyond the first line.

Features

  • Provides a wrapper of JSVerbalExpressions; users can write down the code and compile to regex
  • Methods have a return type of VerbalExpression except where mentioned otherwise
  • The Airbnb style guide is loosely used as a basis for creating clean and readable JavaScript code
  • Replace characters matching the VerbalExpression in a string with another string
  • Capture groups are used to extract data from within the regular expression match for further processing
  • Control whether to match the expression only if it appears from the beginning of the line

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow JSVerbalExpressions

JSVerbalExpressions Web Site

Other Useful Business Software
Deliver secure remote access with OpenVPN. Icon
Deliver secure remote access with OpenVPN.

Trusted by nearly 20,000 customers worldwide, and all major cloud providers.

OpenVPN's products provide scalable, secure remote access — giving complete freedom to your employees to work outside the office while securely accessing SaaS, the internet, and company resources.
Get started — no credit card required.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JSVerbalExpressions!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2021-05-17