mIRC Home    About    Download    Register    News    Help

Print Thread
#127229 10/08/05 08:23 PM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
Code:
alias _file { 
  return $regex($1-,/\.(?:mp3|asf|mov|avi|kar|jpg|bmp|txt|zip|rar|divx|mov|ogg|mpg|mpeg)$/Si) 
}


this code works when it's

$_file(!da^hype Ray Charles - Georgia On My Mind.mp3)

but not when's it's

$_file(!da^hype Ray Charles - Georgia On My Mind.mp3 ::INFO:: 5.0MB)

any idea why? or how to fix it?

#127230 10/08/05 08:37 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
alias _file { return $regex($1-,/\.(?:mp3|asf|mov|avi|kar|jpg|bmp|txt|zip|rar|divx|mov|ogg|mpg|mpeg)\b/iS) }


The $ anchor means "end of the string" (or line if used with /m) so I changed it to match a word boundary.

Last edited by tidy_trax; 10/08/05 08:38 PM.

New username: hixxy
#127231 10/08/05 08:43 PM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
lol, silly me. thanks... laugh


Link Copied to Clipboard