Im not sure about regex but i always just used something like

Code:
on *:text:!addcom *:#:{
if ($nick isop #) {
if ($readini(commands.ini,commands,$2) >= 1) { msg # this command already exists | return }
writeini commands.ini commands $2 $3-
msg # command $2 added!
 }
}


And to check for commands something like
Code:
on *:text:!*:#:{
  if ($readini(commands.ini,commands,$1) != $null) {
    msg # $readini(commands.ini,commands,$1)
  }
}

Last edited by Sjoepele; 27/02/15 06:13 AM.