Almost right: \sin fact, means "any space character", which also includes tabs and possibly, CR / LF ( \rand \n).
If you use perl, it \smay also match some other characters (from perlre ):
If Unicode is valid, "\ s" also matches "\ x {85}", "\ x {2028} and" \ x {2029} "
A few more clarifications.
- (
^ $ ), , ANYWHERE . , /cat/ "cat", "caterpillar" "concatenate". , , , . /s , . , perlre:
. , "." , , .
"/s" "/m" $*. , , $*, "/s" "/m" "^" "$", ( ) . , /ms, "." , "^" "$" , .