I removed the ^ and $ notations in your regex, and your matching worked perfectly...
Of course, the reason is that a newline \n is a member of the \s regex character set, and there is an abundance of \s* in the modified regex.
In reply to Re^2: Regular expression quantifiers and the /gsmx modifiers
by AnomalousMonk
in thread Regular expression quantifiers and the /gsmx modifiers
by davis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |