I have the following regexp:
var re = new RegExp("(^|\\s)" + classname + "(\\s|$)");
I understand \s is a white-space character; the caret means "beginning with". What I don't understand is the pipe character here...
How does the expression above translate into English?
Regards,