flâneur — a map of the web's best reading

Lexical Analysis With Flex, for Flex 2.6.2: Patterns

westes.github.io · 1,868 words · saved by 1 readers

Lexical Analysis With Flex, for Flex 2.6.2: Patterns

Lexical Analysis With Flex, for Flex 2.6.2: Patterns Next: Matching , Previous: Format , Up: Top [ Contents ][ Index ] 6 Patterns The patterns in the input (see Rules Section ) are written using an extended set of regular expressions. These are: ' x ' match the character 'x' ' . ' any character (byte) except newline ' [xyz] ' a character class ; in this case, the pattern matches either an 'x', a 'y', or a 'z' ' [abj-oZ] ' a "character class" with a range in it; matches an 'a', a 'b', any letter from 'j' through 'o', or a 'Z' ' [^A-Z] ' a "negated character class", i.e., any character but those

Explore this link on the map →

related reading