randexp.js - Create random strings that match a given regular expression.

  •        173

randexp will generate a random string that matches a given RegExp Javascript object. Thanks to String-Random for giving me the idea to make this in the first place and randexp for the sweet .gen() syntax.

http://fent.github.io/randexp.js/
https://github.com/fent/randexp.js

Dependencies:

drange : ^1.0.0
ret : ^0.2.0

Tags
Implementation
License
Platform

   




Related Projects

randexp - generate random data from a Regular Expression

  •    Ruby

randexp makes it easy to generate random string from most regular expressions. randexp adds the #generate (or #gen, for short) method to the Regexp class, which generates a ‘random’ string that will match your regular expression.

regexp-examples - Generate strings that match a given regular expression

  •    Ruby

Regexp#examples generates a list of all* strings that will match the given regular expression. Regexp#random_example returns one, random string (from all possible strings!!) that matches the regex.

emoji-regex - A regular expression to match all Emoji-only symbols as per the Unicode Standard.

  •    Javascript

emoji-regex offers a regular expression to match all emoji symbols (including textual representations of emoji) as per the Unicode Standard.This repository contains a script that generates this regular expression based on the data from Unicode Technical Report #51. Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard.

learn-regex - Learn regex the easy way

  •    

Regular expression is a group of characters or symbols which is used to find a specific pattern from a text. A regular expression is a pattern that is matched against a subject string from left to right. The word "Regular expression" is a mouthful, you will usually find the term abbreviated as "regex" or "regexp". Regular expression is used for replacing a text within a string, validating form, extract a substring from a string based upon a pattern match, and so much more.

learn-regex - Learn regex the easy way

  •    

Regular expression is a group of characters or symbols which is used to find a specific pattern from a text. A regular expression is a pattern that is matched against a subject string from left to right. The word "Regular expression" is a mouthful, you will usually find the term abbreviated as "regex" or "regexp". Regular expression is used for replacing a text within a string, validating form, extract a substring from a string based upon a pattern match, and so much more.


expynent - A library that provides regular expression patterns

  •    Python

Expynent is a tiny library that provides regular expression patterns. This can be useful if you don't want to write regular expression manually. Also you can use this library as fixture for testing framework like a py.test. This is a really tiny library and here no need for the documentation. Just import pattern and use it! May the force be with you.

xregexp - Extended JavaScript regular expressions

  •    Javascript

XRegExp provides augmented (and extensible) JavaScript regular expressions. You get modern syntax and flags beyond what browsers support natively. XRegExp is also a regex utility belt with tools to make your grepping and parsing easier, while freeing you from regex cross-browser inconsistencies and other annoyances. XRegExp supports all native ES6 regular expression syntax. It supports ES5+ browsers, and you can use it with Node.js or as a RequireJS module.

Regular Expression Editor (RegExpEditor)

  •    Java

Regular Expressions (aka regex, regexp) made easy. This simple tool manipulates text with regular expressions. Highlighting of regular expression results. See the real power of regex! Use Scala to do manipulate your search results even more.

Convert Regex to XML and back

  •    

This is a small library + demo that transforms a .NET regular expression into an XML string and back. It helps understanding a long regex that was written by someone else, and allows easy editing. It's is developed in .NET 3.5 C#, sources included.

Onigmo - Onigmo is a regular expressions library forked from Oniguruma.

  •    C

Onigmo is a regular expressions library forked from Oniguruma. It focuses to support new expressions like \K, \R, (?(cond)yes|no) and etc. which are supported in Perl 5.10+. Since Onigmo is used as the default regexp library of Ruby 2.0 or later, many patches are backported from Ruby 2.x.

Regex Util

  •    Java

A eclipse plugin to test regular expressions (regex). Full highlighting of regexp syntax. Tooltip with detailed description of regex items, etc... Very usefull. Project page has java-applet to test regexp online. (Regex implementation: java.util.regex.*)

RegEx TestBed - A regular expression testing tool written in WinForms C#

  •    

RegEx TestBed is a regular expression testing tool written in WinForms C# released in 2007 It is now made open source.

Silverlight Regex Tester

  •    CSharp

This Regular Expression tester allows .Net developers a very simple way to test regular expressions against a sample text. This regex checker validates the expression syntax and provides results by leveraging the .Net Framework's native System.Text.RegularExpressions.Regex cl...

Regex Match Maker (RegExmm)

  •    C++

Multi-platform regular expression (regex) creation. Highlights regex matches, and regex groups for quick regular expression creation. Save/load regular expression sessions. Create robust regex patterns on any major platform. Supports PCRE and wxRegEx.

commonregex - 🍫 A collection of common regular expressions for Go

  •    Go

This is a collection of often used regular expressions. It provides these as simple functions for getting the matched strings corresponding to specific patterns.

Inline Regular Expression (Regex) Builder

  •    DotNet

Allows users to create regular expressions using C# syntax, rather than the standard cryptic string.

oniguruma - regular expression library

  •    C

Oniguruma is a modern and flexible regular expressions library. It encompasses features from different regular expression implementations that traditionally exist in different languages. Character encoding can be specified per regular expression object.

hyperscan - High-performance regular expression matching library

  •    C++

Hyperscan is a high-performance multiple regex matching library. It follows the regular expression syntax of the commonly-used libpcre library, but is a standalone library with its own C API. Hyperscan uses hybrid automata techniques to allow simultaneous matching of large numbers (up to tens of thousands) of regular expressions and for the matching of regular expressions across streams of data.

SharePoint Custom Field - Regex Validator

  •    

This is a SharePoint 2010 custom field type project that provides Regex (regular expression) validation on a text field.