Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/command-line-nodejs-chat-bot

command-line NodeJS chat bot
https://github.com/daggerok/command-line-nodejs-chat-bot

chat-bot chatbot js-regex nodejs nodejs-regex regex regexp

Last synced: 17 days ago
JSON representation

command-line NodeJS chat bot

Awesome Lists containing this project

README

        

# command-line-nodejs-chat-bot

```
node regex/ 10:42:40
Enter regex first, press enter and on next line enter string to test...

For example:

# input:
=> colou?rs?
this is most colored color!

# output:
asserting pattern matcher...
found: color, color, colors

Read as a reference: https://developer.mozilla.org/ru/docs/Web/JavaScript/Guide/Regular_Expressions

=> mak?x?
max
asserting pattern matcher...
found: max
```

other samples:

```
\b\d{3}\s?\d{3}\b
my pin is 160010. I also can di like so: 160 010
```

_links_

* [regexr.com](https://regexr.com/)
* [Mozilla Regular Expressions (RU)](https://developer.mozilla.org/ru/docs/Web/JavaScript/Guide/Regular_Expressions)