RegEx for Horizontal Whitespace (\s \h \t blank etc)

You can also use \h which stands for 'horizontal whitespace', that is, it doesn't match newlines:

Match a Horizontal White Space character. They are characters with Unicode General Category of Space_Separator plus the ASCII tab (\u0009). [Since ICU 55]

from ICU Regex

2 Likes