I have several RegEx-rules which all validate fine in the form of
^\s{1,}authentication event no-response action authorize vlan 666[\r\n]*$
...but I have one rule which is made like the one above which fails:
^\s{1,}authentication event server alive action reinitialize[\r\n]*$
...it fails on every single switch I have tested (running and startup config) - I copied and pasted the string until I found out that leaving out the '$' will actually validate fine.