We know \\ba\\b|\\bthe\\b will match either word \"a\" or \"the\" I want to build a regex expression to match a pattern li
\\ba\\b|\\bthe\\b
you can just use:
r"\b(a|the)\b"