pamatcher - A pattern matching library for JavaScript iterators

  •        214

A pattern matching library for JavaScript iterators. pamatcher is a JavaScript library that generalizes the notion of regular expressions to any sequence of items of any type. Instead strings, you can use any iterable or iterator as input. Instead of characters you can use any predicate as item matcher. So you can do pattern matching in a general and declarative way.

http://pamatcher.js.org
https://github.com/pmros/pamatcher

Tags
Implementation
License
Platform

   




Related Projects

matcher - Simple wildcard matching

  •    Javascript

Useful when you want to accept loose string input and regexes/globs are too convoluted.Accepts an array of input's and pattern's.

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.

re2j - linear time regular expression matching in Java

  •    Java

RE2 is a regular expression engine that runs in time linear in the size of the input. RE2/J is a port of RE2 to pure Java.Java's standard regular expression package, java.util.regex, and many other widely used regular expression packages such as PCRE, Perl and Python use a backtracking implementation strategy: when a pattern presents two alternatives such as a|b, the engine will try to match subpattern a first, and if that yields no match, it will reset the input stream and try to match b instead.

url-pattern - easier than regex string matching patterns for urls and other strings

  •    CoffeeScript

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.a pattern is immutable after construction. none of its methods changes its state. that makes it easier to reason about.


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.

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.

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

match-when - :shell: Pattern matching for modern JavaScript

  •    Javascript

Note that when() is a catch-all pattern and, if used, should always be the last condition. If you forget it match() will throw a MissingCatchAllPattern exception if nothing was matched.

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

jrexx: automat. based regex api for Java

  •    Java

jrexx - automaton based regular expression api for Java - provides a very fast matching alogrithm, an extended pattern syntax (with set operations for complement, union, intersection, difference) and allows introspection of the automaton's structure.

SLRE (Super Light Regular Expression)

  •    C

Super Light Regular Expression library (SLRE) implements a subset of Perl regular expression pattern matching in ANSI C.

compile-time-regular-expressions - A Compile time PCRE (almost) compatible regular expression matcher

  •    C++

Fast compile-time regular expression with support for matching/searching/capturing in compile-time or runtime. You can use single header version from directory single-header. This header can be regenerated with make single-header.

Reggie - Regular Expression Generator/Tester

  •    WPF

Reggie's goal is to be a simple developer tool for writing and testing Regular Expressions. It is inspired by the venerable Regulator tool and will be created in WPF using the MVVM pattern with the Caliburn Micro framework.

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.

proposal-pattern-matching - Pattern matching syntax for ECMAScript

  •    

This proposal adds a pattern matching expression to the language, based on the existing Destructuring Binding Patterns. There's many proposals potentially related to this one, and other proposals might mention interaction with this. This file includes casual, example-based discussion of the proposal, and there's also a document describing the core semantics in more formal language, which will be iterated over into the final Spec-ese.

matches.js - Powerful pattern matching for Javascript

  •    Javascript

Matches.js brings the power and expressiveness of pattern matching to Javascript. Check for specific values using number or string literals, null, or undefined.