Goga:
Try this forum thread...
http://forum.egghelp.org/viewtopic.php?t=21181
Code: Select all
if {$tiempo ne "" && ![regexp -nocase {^[1-9][0-9]*[dhms]$} $tiempo]} {
Code: Select all
if {$tiempo ne "" && ![regexp -nocase {^[1-9][0-9]*[dhms]$} $tiempo] && $tiempo != 0} {
Adjust the regexp to cover what you see as all the choices...$tiempo is in the syntax of 12h 1d 1m 1y
Code: Select all
{^[1-9][0-9]*[hdmy]$}
Code: Select all
regexp {^(\*).(\*)!(\*)@(\*)$} $ban