regexp for removeLineClass

I saw in another codebase (firepad) a call to removeLineClass where the ‘class’ argument is a regexp. However this is not documented in the manual. Is this valid ?

Nope, that isn’t supported – and in fact won’t work.