fent / randexp.js

Create random strings that match a given regular expression.

Home Page:http://fent.github.io/randexp.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A small question.

snshn opened this issue · comments

Hello, @fent.

I've forked your work to create an input validation plugin which works with regular expressions.
So far it's been working well with simple (fixed length) expressions.

I added a symbol to use as a breaking point for splitting the persistent part of the string from dynamic.
There's also now a stringified version of ret within the code, that's better for the browsers.

My final goal is to make my fork return an array of all possible combinations for a given regexp rather than a one random string.

Could you please hint me, as the original developer, where it's best to start and how to accomplish this task based on randexp.js?

Thank you for your time, I greatly appreciate you sharing this piece of code with the community!

commented

There is genex, it generates all possible inputs.

Thank you.