I need following regexp such as.. the parenthesis are just to show the words
(abc) => pass
(abc ) => pass * abc with trailing white space
(abc ..blah..) => pass * ..blah.. means any chars containing spaces
(abcd) => fail
is there any good idea to do?
I trimmed the string so basically the first two cases are the same
but i couldn t make it fail when (abcd) comes in