Hello guys,
What is proper regex to filter out empty characters (spaces) string of any length. More spacific if someone someone post "_" or "____" or "________" etc (_ is space) that would be filtered however when someone go for "_hello" or "_hello_there_" etc that will pass. So for example:
/spamfilter add cN block - Empty_string_detected. <someregex>
What should be used for <someregex> to fit this need? I hope this should be easy for people familiar with regex syntax which unfortunately i'm not.
Many thanks in advance and happy holidays everyone.
empty string filtering
Re: empty string filtering
Thanks Jobe1986 however:
Error in regex '^\s*$': Regular expression is too broad
I've tried with badword block (with idea to mlock +G later on channels where i need this) but with the same type of error. :/
Error in regex '^\s*$': Regular expression is too broad
I've tried with badword block (with idea to mlock +G later on channels where i need this) but with the same type of error. :/
Re: empty string filtering
Match: " {2,}"
Replace: " "
Replace: " "
Why the hell can't my signature be empty?
"Your message contains too few characters."
"Your message contains too few characters."
Re: empty string filtering
Solved with "^ {1,}" to "" for what I needed. Many thanks everyone!
edit: changed to better and actual solution.
edit: changed to better and actual solution.