1

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

surbhiGoel
  • 1,436
  • 2
  • 8
  • 12
  • 1
    Please post the code you are using, sample input and expected output. – Wiktor Stribiżew Jun 12 '17 at 07:13
  • Your question seems very legitimate but it should indeed be improved with examples. Examples what you expect and what you did not expect. Maybe you can even create an example at http://refiddle.com/ – Pieter21 Jun 12 '17 at 07:16

1 Answers1

-1

^\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\)
Mohideen bin Mohammed
  • 18,813
  • 10
  • 112
  • 118