dde regexp problem |
dde regexp problem |
danse |
Mar 28 2006, 03:44 AM
Post
#1
|
Unregistered |
hi,
after some testing with mirc dde command and regexp in comparisons i cant understand why my dde command doesnt work. for %name like "Siliconesoul DJ Mix (ADDICTIVE BEAT RADIO - Global Underground Dance Music (Powered by Psychz.net))" i cannot get the following regexp to work //echo $dde(mPlug,format,"%?name='.{0,20}'<to_long|%name>") i excepted a "to long" but it echo'ed "%?name='.{" |
Guest |
Mar 28 2006, 03:48 AM
Post
#2
|
Unregistered |
forgot to mention that im using amip 2.63 on winamp 5.11 and mirc 6.17
|
Serge |
Mar 28 2006, 08:32 AM
Post
#3
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
You can't use comma there, mIRC thinks that it's a separator between $dde function arguments. You can try to replace it with a code, like {0 $+ $chr(44) $+ 20}, but a much better approach is to put what you need in AMIP preset and use "/dde mplug announce" command in mIRC. Then you don't have to escape all the stuff like spaces and commas that mIRC can't handle.
Also, in this particular case you should probably use: $iflen(str,len,shortstr) If str is longer than len, use shortstr, otherwise use str. |
Guest |
Mar 28 2006, 11:09 AM
Post
#4
|
Unregistered |
thank you for your answer serge. problem solved
|