Code Monkey home page Code Monkey logo

highregex's Introduction

Higher Order Regular Expressions for .Net

Higher order

"Higher-order" speaks to the complexity of the data and of the expression. While classic regex matches sequences of characters, HighRegex supports sequences of any type, for example a token in text processing or a datapoint.

In Functional Programming, "Higher Order Functions" are functions that take other functions as a parameter and/or return functions. Similarly, higher order regular expressions are composed of other regular expressions.

HighRegex supports:

HighRegex does not support:

  • Grouping and back-referencing (?<lastName>name)
    • Grouping would be a great feature... Hopefully that is coming soon.
    • Back-referencing \1 would be a nice feature, but may add complexity. Ideally, if breaking changes are necessary to support this, it would be opt-in.
  • Modifiers (?i), etc.
    • Since you have complete control over the classes, modifiers are probably not necessary.
  • Atomic Grouping (?>right|left) is not supported.
    • This would be a nice feature, and probably not too difficult.
  • Continuing matches \G is not supported.
  • Comments. (?# not supported)
    • you'll probably be using an expression composed of self-documenting, named expressions, making comments unnecessary
  • Replacements. Regex.Replace("ABC", "[AEIOU]", "o") This would be an interesting way to do substitutions or perhaps delete "bad data" from a sequence.

highregex's People

Contributors

jeremyrsellars avatar

Watchers

James Cloos avatar  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.