Matching Whitespace & Non-Whitespace Character

  • + 0 comments

    the patter seems the opposite of what they listed \S = space \s = not a space

    give pattern XXxXXxXX "\s\s\S\s\s\S\s\s" or "(\s{2}\S{1}\s{2}\S{1}\s{2})" but solution is : "\S\S\s\S\S\s\S\S" or "(\S{2}\s\S{2}\s\S{2})" so why so this seem backwards from the givent pattern?