Regex for a method name which will only contain one opening and one closing bracket and will not accept any white spaces. I tried this-
.(((.)))+
But it is accepting spaces also
Regex for a method name which will only contain one opening and one closing bracket and will not accept any white spaces. I tried this-
.(((.)))+
But it is accepting spaces also
^\s
- will omit whitespace
use \
in front of '(' and ')' to include since both are reserved so you need '\' to mention it's the character to match .
\(^\s\)