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
- Host: GitHub
- URL: https://github.com/joao-neves95/regexquery
- Owner: joao-neves95
- License: gpl-3.0
- Created: 2020-04-18T19:21:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T18:47:47.000Z (over 5 years ago)
- Last Synced: 2025-03-10T15:56:13.006Z (10 months ago)
- Topics: commonjs, csharp, dotnet, dotnet-core, dotnet-standard, javascript, library, regex, regular-expressions, typescript, umd
- Language: C#
- Size: 2.2 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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)