\s* stands for zero or more whitespace characters, including \n and \r (newlines).
Two ways (at least) to get what you want:
1. Instead of \s, use a character class. [ \t] defines a character class with a spacebar space and a tab.
* All of these start at beginning of line due to ‘^’ anchor.
^[ \t]*print # zero or more spaces or tabs before ‘print’
^[ \t]print # one tab or space before ‘print'
^[ \t]+print # one or more spaces or tabs before ‘print'
2. Use \h instead of [ \t] or \s; \h stands for horizontal whitespace, applies more widely to horizontal whitespace characters.
^\h*print
^\hprint
^\h+print
HTH
— Bruce
_bruce__van_allen__santa_cruz_ca_