Code Monkey home page Code Monkey logo

incr-regex-package's Introduction

  • 👋 Hi, I’m @nurulc
  • 👀 My professional interest is Identity Management Security
  • 🌱 I am currently learning about the challanges of scaling up machine learning for business
  • 💞️ I’m looking to collaborate on Javascript tools
  • 📫 Reach me at: [email protected]

incr-regex-package's People

Contributors

dependabot[bot] avatar mohammedbalhaddad avatar nurulc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

incr-regex-package's Issues

incrRegEx is undefined in v1.0.4

In the package version 1.0.4, as listed as the latest one here: https://www.npmjs.com/package/incr-regex-package
[PS: The commits on master are only till 1.0.3]

I tried this code, which throws incrRegEx is not a function.

const ir = require("incr-regex-package");
const { incrRegEx } = ir;

Downgrading to v1.0.3 works BTW.

So I dug deeper later and saw in node_modules that in v1.0.4, there is no export for incrRegEx, which is literally the heart of this package.

Just wanted to know if this package is being actively maintained (and is it safe to use), and also did someone accidentally pushed /published their test code as v1.0.4 to npm, without ever committing here?

Thanks!

function to skip the node

Hi:

I'm looking at the package to do a reg ex search for the validity of a string.

I have a requirement in which a user enter a "" to skip some of the nodes in the search.
As an example if my regex is 536X[5|8][A-Z]+ a user enters 5
5A.
So, is there any way I can search a character in the FSM node and if its not matching move to the next node and search. Help on this will be highly appreciated

Too much recursion

Hello,

the following regular expression
((((<A>){1}|(<F>){1}|(<T>){1}){1}|((<N>){1}){1})|((<P>)(((<W>)(<C>)){1}(<N>)){1}(<P0>)){1})*
raise a too much recursion fatal error.

Best regards

FAIL never reached

Hello,

I find your package, potentially useful, however, I can't get some basic functionality to work (or I misunderstand how it works).
I'm trying to run the following query, expecting to receive FAIL, but I'm getting MORE:

rx = ir.incrRegEx("\\d{3}-\\d{3}-\\d{4}"); rx.matchStr("lala123"); rx.state();

Is this the expected behavior?

Start ^ never matched

> rx = iRX.incrRegEx(/^ab+a$/)
< t {str: /^ab+a$/, base: {…}, tracker: Array(0), current: t, one: t, …}
> rx.minChars()
< 'ab⋯a'
> rx.match('a')
< false
> rx.match('a')
< false

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.