specialCharsOption

Im having trouble using the specialChars option in codemirror, when i use it this way, it doesnt work because it requires a RegExp object, but I dont know how to write it correctly in string format.