Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
what is wrong with this regex?
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Re: what is wrong with this regex?
#
255706
14/11/15
11:14 PM
Joined:
Jan 2004
Posts: 1,330
L
Loki12583
Hoopy frood
Loki12583
Hoopy frood
L
Joined:
Jan 2004
Posts: 1,330
You're capturing the spaces, this forces the same number of spaces to occur after each word - including the last. I think mIRC also chokes on the comma, separate the regex:
Code:
var %regex = /(\S+)(\s*\1){7,}/i echo -ag $regex($1-,%regex)
Last edited by Loki12583;
14/11/15
11:21 PM
.
Copy Link to Clipboard
Entire Thread
Subject
Posted By
Posted
what is wrong with this regex?
Anonymous
14/11/15
10:43 PM
Re: what is wrong with this regex?
Loki12583
14/11/15
11:14 PM
Re: what is wrong with this regex?
Anonymous
14/11/15
11:21 PM
Re: what is wrong with this regex?
Loki12583
14/11/15
11:37 PM
Re: what is wrong with this regex?
Anonymous
14/11/15
11:50 PM
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 Flat 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