PREV UP NEXT Regex

5.1.2: The Match-syntactic-class Operator (\sclass)

This operator matches any character whose syntactic class is represented by a specified character. \sclass represents this operator where class is the character representing the syntactic class you want. For example, w represents the syntactic class of word-constituent characters, so \sw matches any word-constituent character.