Yes both provides similar functionality. I used to [[:space:]] in place of \s so I replaced that.
oh!!! earlier looks short, I reverted back to earlier this line