Home
About
Download
Register
News
Help
Register
Log In
Forums
Bug Reports
$regsub
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$regsub
#
13606
28/02/03
08:52 PM
Joined:
Dec 2002
Posts: 29
N
Nem3sis
OP
Ameglian cow
OP
Nem3sis
Ameglian cow
N
Joined:
Dec 2002
Posts: 29
//var %a | echo -a $regsub(lalala u alalala u lalal,\bu\b,you,%a) ~ %a
echos: 1 ~ lalala you alalala u lalal
when it should return 2 ~ lalala you alalala you lalal
Copy Link to Clipboard
Re: $regsub
#
13607
28/02/03
11:30 PM
Joined:
Dec 2002
Posts: 2,962
Norwich, UK
S
starbucks_mafia
Hoopy frood
starbucks_mafia
Hoopy frood
S
Joined:
Dec 2002
Posts: 2,962
Norwich, UK
You have to use the global modifier if you want to find every match throughout the string. Just change your expression to /\bu\b/g and it'll work.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
Copy Link to Clipboard
Re: $regsub
#
13608
28/02/03
11:59 PM
Joined:
Dec 2002
Posts: 29
N
Nem3sis
OP
Ameglian cow
OP
Nem3sis
Ameglian cow
N
Joined:
Dec 2002
Posts: 29
aah thnx
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage