Home
About
Download
Register
News
Help
Register
Log In
Forums
Bug Reports
regex \0 change
Forums
Active Threads
Search
Who's Online
Help
Print Thread
regex \0 change
#
183471
20/08/07
08:06 AM
Joined:
Aug 2007
Posts: 3
D
DanElectro
OP
Self-satisified door
OP
DanElectro
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
Copy Link to Clipboard
Re: regex \0 change
DanElectro
#
183472
20/08/07
08:20 AM
Joined:
Aug 2007
Posts: 10
Europa,Sardegna,Cagliari
S
Supersonic
Pikka bird
Supersonic
Pikka bird
S
Joined:
Aug 2007
Posts: 10
Europa,Sardegna,Cagliari
no! in 6.21 and 6.3 return 4444
in version 6.2 return 4321
Copy Link to Clipboard
Re: regex \0 change
DanElectro
#
183473
20/08/07
08:20 AM
Joined:
Dec 2002
Posts: 3,138
London, UK
C
Collective
Hoopy frood
Collective
Hoopy frood
C
Joined:
Dec 2002
Posts: 3,138
London, UK
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.
Copy Link to Clipboard
Re: regex \0 change
DanElectro
#
183474
20/08/07
08:29 AM
Joined:
Aug 2007
Posts: 3
D
DanElectro
OP
Self-satisified door
OP
DanElectro
Self-satisified door
D
Joined:
Aug 2007
Posts: 3
I just tested it again on 6.2 and it returns 4321
Copy Link to Clipboard
Re: regex \0 change
DanElectro
#
183475
20/08/07
08:33 AM
Joined:
Aug 2007
Posts: 3
D
DanElectro
OP
Self-satisified door
OP
DanElectro
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
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage