Skip to content

daggerok/command-line-nodejs-chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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