Options
All
  • Public
  • Public/Protected
  • All
Menu

Module matchRule/pattern

This module reexports functions, schemas and types related to the Pattern type.

A pattern is a string that matches module codes. Each pattern string is made up of strictly numbers, uppercase letters, the letter 'x' (used to denote any digit) and the wildcard '*' (used to denote any possibly empty sequence of numbers or uppercase letters).

Examples:

* # matches any module code
CS2103T # matches exactly "CS2103T"
MA22xx* # matches any module code starting with "MA22" followed by two
# digits
ACC* # matches any module code starting with "ACC"

Index

References

Pattern

Re-exports Pattern

patternSatisfier

Re-exports patternSatisfier

patternSchema

Re-exports patternSchema

patternTypeSchema

Re-exports patternTypeSchema

Functions

Const patternToRE

  • patternToRE(...patterns: string[]): RegExp

Generated using TypeDoc