i'm trying, in vain, create regex string accomplishes following.
in given string: return true if string not made of * , space characters. **
ok , **** ****
fine (the \n may not have come through editor)
**
but other needs flagged up. string may single space or series of space , line endings only, i'm having difficulty eliminating these.
i working \\*+\\s+
check single spacing killing me
this should work:
^[^* ]+$
make sure put start "^" , end "$" anchors there
Comments
Post a Comment