Tetra-WebBBS Support Forum

Re: block empty messages?
In Response To: Re: block empty messages? ()

Hi Julian.

Glad the code works on your end.
... must admit I'ld bet to have thrown in a couple of typos ;)

: Thank you very much, always a pleasure to ask you thinks and get
: the problems solved in only some hours! :D

Thanks for the compliment

: Because I'm curious: Can you tell me what the code exactly does? I
: think I unterstand it all except this line:

    $teststring
: =~ s/<.+?>//gi;

Supposed to remove HMTL ...., well ..... remove everything wrapped in lower than and greater than brackets, which can be assumed to be HTML

.... the "<.+?>" actually is ...
- a "<"
- followed by any character
- at least one such character
- non-greedy matching
- up to the next ">"

Have a nice Sunday, Julian.

Rainer