An open API service indexing awesome lists of open source software.

https://github.com/joao-neves95/regexquery

Regular expressions in English
https://github.com/joao-neves95/regexquery

commonjs csharp dotnet dotnet-core dotnet-standard javascript library regex regular-expressions typescript umd

Last synced: 10 months ago
JSON representation

Regular expressions in English

Awesome Lists containing this project

README

          

# RegexQuery

Regular expressions in english.

---

## RegexQueryCSharp

### Installing

[nugget](https://www.nuget.org/packages/RegexQuery)

`dotnet add package RegexQuery`

 

### Example

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

### API

[C# API README](https://github.com/joao-neves95/RegexQuery/blob/master/RegexQueryCSharp/README.md)

 

---

## RegexQueryJS

### Installing

#### npm

[npm](https://www.npmjs.com/package/regex-query-js)

`npm install regex-query-js`

#### Browser

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

 

### Example

#### CommonJS environments, that support module.exports

```js
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)

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

### API

[JavaScript/Typescript API README](https://github.com/joao-neves95/RegexQuery/blob/master/RegexQueryJS/README.md)