hypothesis-regex - Hypothesis extension to allow generating strings based on regex

  •        4

Hypothesis extension to allow generating strings based on regex. Useful in case you have some schema (e.g. JSON Schema) which already has regular expressions validating data. Regex strategy tries to go all crazy about generated data (e.g. "$" at the end of a string either does not generate anything or generate a newline). The idea is not to generate a nicely looking strings but instead any craze unexpected combination that will still match your given regex so you can prepare for those and handle them in most apropriate way.

https://github.com/maximkulkin/hypothesis-regex

Tags
Implementation
License
Platform

   




Related Projects

hypothesis - Hypothesis is a powerful, flexible, and easy to use library for property-based testing.

  •    Python

Hypothesis is family of testing libraries which let you write tests parametrized by a source of examples. A Hypothesis implementation then generates simple and comprehensible examples that make your tests fail. This simplifies writing your tests and makes them more powerful at the same time, by letting software automate the boring bits and do them to a higher standard than a human would, freeing you to focus on the higher level test logic. This sort of testing is often called "property-based testing", and the most widely known implementation of the concept is the Haskell library QuickCheck, but Hypothesis differs significantly from QuickCheck and is designed to fit idiomatically and easily into existing styles of testing that you are used to, with absolutely no familiarity with Haskell or functional programming needed.

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.

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.

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.

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.

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.

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...

Inline Regular Expression (Regex) Builder

  •    DotNet

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

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.

SharePoint Custom Field - Regex Validator

  •    

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

Regex Builder

  •    

Regex Builder is a tool designed to help you create and debug Regular Expressions. It supports an XML file format including the source text, expression, and options to support easy debugging for non-matches from other applications. The tool also supports partial expression exe...

Regex Lab .NET

  •    

Regex Lab .NET is a full-featured application for editing regular expressions (or regex patterns). The application features a modern, highly functional UI for writing or debugging regular expression patterns. It is written with C# and WinForms.

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.

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.

RegEx Matcher

  •    

RegEx Matcher 1.0 is a simple and small regular expression tester. It is a Windows Application Developed in C# with Visual Studio 2008 & .net Framework 2.0 Send your feedback @ amits.hegde@gmail.com

Regex Batch Replacer (Multi-File)

  •    

Regex Batch Replacer uses regular expression to find and replace text in multiple files.