I am having trouble googling this. In some code I see
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
/[\[]/
looks to be 1 parameter. What do the symbols do? It looks like it's replacing [] with \[\]
but what specifically does /[\[]/
do?