Categories
Socket.io and regular expressions: how?
I pass regExp over web sockets (socket.io) in this way:
socket.emit('xxx', {regExp: /^[a-zA-Z]([\w\s#]{0,13})[\w]{1}$/});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question