mIRC Home    About    Download    Register    News    Help

Print Thread
#183471 20/08/07 08:06 AM
Joined: Aug 2007
Posts: 3
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Aug 2007
Posts: 3
in 6.21 \0 was returning the number of matches from the current point, in 6.3 its just returning total matches.

ie:
$regsubex(test,/(.)/g,\0) would return 4321 but now its returning 4444

Joined: Aug 2007
Posts: 10
S
Pikka bird
Offline
Pikka bird
S
Joined: Aug 2007
Posts: 10
no! in 6.21 and 6.3 return 4444
in version 6.2 return 4321

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
The \0 behaviour hasn't changed. Perhaps you're thinking of \n, which would give 1234 for the above example (not 4321).

Since \0 is supposed to give the total number of matches it seems reasonable for it not to change.

Joined: Aug 2007
Posts: 3
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Aug 2007
Posts: 3
I just tested it again on 6.2 and it returns 4321

Joined: Aug 2007
Posts: 3
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Aug 2007
Posts: 3
hm, just checked versions.txt and for 6.21 changes it says

20.Fixed $regsubex() bug with \0 parameter and various other

i guess that was it smirk


Link Copied to Clipboard