java - Can someone help me with a regular expression? -
i need writing regular expression following rules:
- white spaces aren't allowed.
- 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
Post a Comment