On Thu, Mar 05, 2015 at 05:07:44PM +0000, Stephane Chazelas wrote:
> bash also supports \s, but that's more for [[:space:]] (so
> includes vertical spacing like CR, LF), and you need to use an
> intermediary variable:
> 
> r='^some text:\s+([0-9.]+)'
> [[ $s =~ $r ]]

Woah!  What?  Where is *that* documented?  The only \s in the man page
is in PS1.

Reply via email to