Skip to content

joao-neves95/RegexQuery

Repository files navigation

RegexQuery

Regular expressions in english.


RegexQueryCSharp

Installing

nugget

dotnet add package RegexQuery

 

Example

public static void Main()
{
    string regexQuery1 = new RegexQuery().ADate()
                                         .BeginFollowedBy()
                                             .ASpace()
                                             .ANewLine()
                                         .EndGroup()
                                         .ToString();
}

API

C# API README

 


RegexQueryJS

Installing

npm

npm

npm install regex-query-js

Browser

Use the file "dist/RegexQuery.min.js" inside the npm package.

 

Example

CommonJS environments, that support module.exports

const { RegexQuery, RegexTokens } = require( 'regex-query' );

console.log( new RegexQuery().AnyOf$1( '#%&£§€' ).toString() );

console.log(
  new RegexQuery().ADate()
                  .BeginFollowedBy()
                    .ASpace()
                    .ANewLine()
                  .EndGroup()
                  .toString()
);

console.log( RegexTokens.NotWord );

On the Browser (window)

console.log( new RegexQuery().AnyOf$1( '#%&£§€' ).toString() );
console.log( RegexTokens.NotWord );

API

JavaScript/Typescript API README