You cannot use { } symbols inside $regex().
On @*:TEXT:*:#: {
var %re = /[^a-z0-9]{20,}/
if ($regex($1-,%re)) { msg $chan [Warning] $nick ... }
var %re = /... etc next pattern/
}
Edit: Correction, you can wrap the pattern inside a (?:...) if it contains { }
$regex($1-,/(?:[^a-z0-9]{20,})/)
Last edited by Raccoon; 09/01/15 04:53 PM.