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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -