As a programmer, sometimes in order to find the line of code that calls a certain function, I often want to query with "(" brackets, for example, I want to find "sum(", but such an error occurs
How to solve it?
Add a backslash before the "(" brackets,
For example, if you want to search for "sum(" just now, you can actually enter "sum\("
\(
Interpretation: a(
character([^()\s](?:[^()]*[^()\s])?)
Explanation: Group 1:[^()\s]
Explanation: Characters other than(
, and spaces)
(?:[^()]*[^()\s])?
Explanation: an optional sequence (so as to also match like(a)
, 1 character in brackets) of strings[^()]*
Explanation:(
0+ characters except and)
[^()\s]
Explanation: Characters other than(
, and spaces)
\)
Explanation: A)
character.