Literals are simply characters themselves, such as “a” or “boat” or “123.” Some characters are “reserved” with special meanings, such as “+.” In the case of the plus sign, its special meaning is “additional characters like one just to the left of the + sign.” If you want to use any of these reserved characters as a literal in a RegEx, you need to escape them with a backslash. If you want to match 1+1=2, the correct RegEx is 1\\+1=2. Otherwise, the plus sign has a special meaning.
1 Remember that two backslashes are required. ...