StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.5 KiB
70 lines
1.5 KiB
# delimiter-regex [](http://badge.fury.io/js/delimiter-regex) [](https://travis-ci.org/jonschlinkert/delimiter-regex)
|
|
|
|
> Create regex for template delimiters.
|
|
|
|
## Install with [npm](npmjs.org)
|
|
|
|
```bash
|
|
npm i delimiter-regex --save
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
var delims = require('delimiter-regex');
|
|
```
|
|
|
|
**Example**:
|
|
|
|
Get a regex for matching front-matter:
|
|
|
|
```js
|
|
delims('---', '---');
|
|
//=> /---\s*([\s\S]*?)\s*---/
|
|
```
|
|
|
|
If no args are passed, es6 delimiter regex is returned:
|
|
|
|
```js
|
|
delims();
|
|
//=> /\$\{\s*([\s\S]*?)\s*\}/
|
|
```
|
|
|
|
## Params
|
|
|
|
- **delimiters** `{String|Array}`: supports array format (`delims(['{{', '}}'])`) or list (`delims('{{', '}}')`)
|
|
- **options**: currently RegExp `flags` is the only option
|
|
|
|
**Flags example**
|
|
|
|
```js
|
|
delims('{{', '}}', {flags: 'gm'});
|
|
//=> /\{\{([^}}]*)\}\}/gm
|
|
```
|
|
|
|
## Running tests
|
|
Install dev dependencies.
|
|
|
|
```bash
|
|
npm i -d && npm test
|
|
```
|
|
|
|
## Contributing
|
|
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/delimiter-regex/issues)
|
|
|
|
## Author
|
|
|
|
**Jon Schlinkert**
|
|
|
|
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
|
|
|
## License
|
|
Copyright (c) 2014-2015 Jon Schlinkert
|
|
Released under the MIT license
|
|
|
|
***
|
|
|
|
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 18, 2015._
|
|
<!-- deps:mocha --> |