Reggie-Docs "My first foray into Open Source development." Now, this is not the first time I've contributed to open-source software. It is the first time I have submitted my own project to . npmjs The Project: Reggie Docs Regular Expressions are complicated to write. It's even more difficult to reason about them; especially if you have to read someone else's code. About a year ago, I wrote an article about an experiment I was working with (see it ). I've actually used this pattern several times since writing the article and working through the code. HERE Then, someone said, "this should be an open-source library." And ... something in my brain clicked. And ... I started reworking the codebase I had into something more functional. The Open-Source Project The project is here: . reggie-docs This project will allow a developer to use a Template Literal to build a regex, with comments to make it more readable. code0001 = ; const ` /* Matches text avoiding additional spaces */ ^ // Beginning of line [\\s]* // Zero or more whitespace (.*?) // Any characters, zero to unlimited, // lazy (as few times as possible, expanding as needed) [\\s]* // Zero or more whitespace $ // End of line ` ... rather than ... code0001regex = ; const /^[\s]*(.*?)[\s]*$/ Here's a pattern for use of the above ... code0001 Reggie = ( ); reggie = Reggie(); results = {}; patternCheck0001 = ; results.code0001 = reggie.create(code0001); code0001Exp = reggie.generate(code0001); results.code0001Test = code0001Exp.exec(patternCheck0001)[ ]; const require 'reggie-docs' const new let const ' Test Spaces Before and After ' const 1 Conclusion The whole concept of this project is to make Regular Expressions easier to understand and reason about. In doing this, the process should be simple and easy to work with. Also published . on Hashnode