Giter VIP home page Giter VIP logo

Comments (3)

zbma avatar zbma commented on July 17, 2024

I like the idea of predefined expressions, some commons ones would definetly speed things up.

Also, I think, that specification/API is needed if we want to keep ports synchronized, otherwise we'll end up doing things differently (by means of API/methods etc) in different ports.

from csharpverbalexpressions.

whackashoe avatar whackashoe commented on July 17, 2024

A spec is good, a simple listing of words and corresponding regex would be good as well. I'd actually opt for a general structure per name to look at rather than a whole host of functions (prefer second example over first).

Where each function can simply be overloaded to take a constant structure that defines the regex. That way you could keep the same amount of functions, but just add functionality to a list containing things like email, phone number, etc. It would be easier to extend and keep the api interface a bit simpler.

What I think would be ideal is a general structure that can be used in any function, and each function can just obey its rules rather than a giant switch statement per function, however I think that is solely in the hands of the implementers per port.

Some ones I'd like to see:

  • email
  • phone
  • url
  • date
  • ip address
  • rgb color hex value
  • decimal number
  • time format

from csharpverbalexpressions.

psoholt avatar psoholt commented on July 17, 2024

Moved the default regex issue to the general implementation project:
VerbalExpressions/implementation#5

from csharpverbalexpressions.

Related Issues (20)

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.