java - Can someone help me with a regular expression? -


i need writing regular expression following rules:

  1. white spaces aren't allowed.
  2. the case white spaces allowed inside brackets [].

i have came expression:

[^(\\[\s\\])] 

but in case each of chars: [, white space, , ] not allowed separately.

please help

thanks

you use expression like:

^(?:[^][\s]|\[[^]]*\])*\z 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -