Code Monkey home page Code Monkey logo

regexp-engine's Introduction

mask-engine

JavaScript (TypeScript) regexp engine library

How to compile this repo

Sample usage

Character

Explanation

0

User must enter a digit (0 to 9).

9

User can enter a digit (0 to 9).

User can enter a digit, space, plus or minus sign. If skipped, a blank space is entered.

L

User must enter a letter.

l

User can enter a letter.

X

User must enter a letter or a digit.

x

User can enter a letter or a digit.

C

User must enter either a letter or a space.

c

User can enter letters or spaces.

?

User can enter one symbol.

User can enter at least one symbol.

User can enter from zero to any count of symbols.

{N}

\

Characters immediately following will be displayed literally.

""

Characters enclosed in double quotation marks will be displayed literally. User must enter exactly N symbols

. , : ; - /

Decimal and thousands placeholders, date and time separators.

Coverts all characters that follow to uppercase.

<

Converts all characters that follow to lowercase.

Basic functions

  var ee = new Regexp("0{2}.9?");
  var res1 = ee.evaluate("99.7");

regexp-engine's People

Contributors

tsv2013 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.