mIRC Home    About    Download    Register    News    Help

Print Thread
#71446 15/02/04 07:58 AM
Joined: Mar 2003
Posts: 32
P
Pap Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2003
Posts: 32
Could someone please explain to me why in the world when I do:
//echo -a $regsub([HH:nn],[A-Za-z]*, $chr(46), %foo) %foo
it returns: ".[HH:nn]" instead of "[..:..]"

further confusing me is why when I do:
//echo -a $regsub([HH:nn],[A-Za-z], $chr(46), %foo) %foo
it returns "[.H:nn]"

Maybe this is because I have no idea how to write a regular expression, or because I have no idea how to use $regsub properly, or because it's a bug in mIRC 6.12, or because I'm just a n00b confused

thanks

#71447 15/02/04 08:04 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try this:
//echo -a $regsub([HH:nn],/[A-Za-z]/g,$chr(46),%foo) %foo

#71448 15/02/04 08:10 AM
Joined: Mar 2003
Posts: 32
P
Pap Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2003
Posts: 32
ah excellent. I forgot about those switches. thank you very much!


Link Copied to Clipboard