%player% is sneakingwill match any input that's like ‘<anything can go here> is sneaking’, e.g.
player is sneakingor
this sentence doesn't make sense is sneaking, though the latter will result in an error.
Apart from text that is matched one-to-one, such patterns consist of the following constructs:
|Groups in parantheses|| || The pattern will match either part 1, or part 2, etc., e.g. |
|Optional parts|| || Makes a part of the pattern optional, e.g. |
|Expressions|| || Indicates that there must be an expression of the given type(s) at this point in the pattern. This is sometimes limited to literals only (|
|Regular Expressions|| || Denotes part of a pattern as a Regular Expression, e.g. |
|A backslash|| || escapes the next character, i.e. it will be matched 1:1 and is not regarded as part of the pattern syntax, e.g. |
NB: Double spaces as well as spaces at the beginning or end of a pattern are ignored, e.g.
[a] bwill match both ‘b’ and ' b', and
a [b] cwill match ‘a c’ and ‘a c’.