Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Prevent repeat characters
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Prevent repeat characters
#
95655
26/08/04
07:49 AM
S
ShavedApe
ShavedApe
S
n/m i figured it out
I wanted to prevent things like: aaaaaaaaaaaaa bbbbbbbbbbbb etc
I think i managed it with a regex
Last edited by ShavedApe;
26/08/04
08:15 AM
.
Copy Link to Clipboard
Re: Prevent repeat characters
#
95656
26/08/04
06:27 PM
Joined:
Apr 2003
Posts: 701
Leuven, Belgium
K
Kelder
Hoopy frood
Kelder
Hoopy frood
K
Joined:
Apr 2003
Posts: 701
Leuven, Belgium
just for other curious people
alias blockrepeat { var %a, %b = $regsub($1-,/(.)\1+/g,\1,%a) | return %a }
//echo -s -> $blockrepeat(aaaaaaaa bbbbbbbbbbbcccccccddddddddddaaaaaaa hello) <-
echos -> a bcda helo <-
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage