The pattern is constructed by combining each target string using the `|` (OR) operator. Special characters like `.`, `+`, `(`, `)`, `/` need to be escaped using a backslash `\` to match them literally.