The parser will look for paterns inside HTML tags. It can not handle nested tags. It can handle attributes.
The pattern is a number with either an S, L or W separated by a |. The number is how many of that item you want.