Regex to detect if text is between two parenthesis with no space after and before

Viewed 18
"a <a bc>"     : TRUE
"a <<a bc>>"   : TRUE
"a < a bc>"    : FALSE
"a <a bc >"    : FALSE
"a <<a bc >>"  : FALSE
"a <a bc >>"   : FALSE

I tried the following one :

regex = "<+\\S.*\S]>+" 
0 Answers
Related