Your regex works of course.
And true is, "\s includes line breaks."
And SublimeText does an good job here, i like this.
But why didn't SublimeText have the option to let the ^ caret
match at start of (an single) line ?
Matches at the start of the string the regex pattern is applied to.
Matches a position rather than a character.
Most regex flavors have an option to make the caret match after line breaks
(i.e. at the start of a line in a file) as well.
^. matches a in abc\ndef.
Also matches d in "multi-line" mode.
At least "^\s+?
(\w.+)" should match non-greedy an single line only, isn't it?.
But i think SublimeText behave like
Caret and dollar match after and before newlines for the remainder of the regular expression.
(Older regex flavors may apply this to the entire regex.)
Then i think the flag (?-m) should disable this, but that doesn't work.
What do others think about this behaviour? Am i only wrecked by the weak RE implementation of other editors