Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Getting a value
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Getting a value
#
204380
17/09/08
07:10 PM
Joined:
Oct 2007
Posts: 214
B
Buggs2008
OP
Fjord artisan
OP
Buggs2008
Fjord artisan
B
Joined:
Oct 2007
Posts: 214
Hello,
I am wanting to know if you have an output of:
*!*@123.456.789.100
How would I get only the first three octets and have a re-arranged format like this:
123.456.789.*
Thanks a bunch.
Jay
Copy Link to Clipboard
Re: Getting a value
Buggs2008
#
204383
17/09/08
10:44 PM
Joined:
Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB
Hoopy frood
RusselB
Hoopy frood
R
Joined:
Aug 2004
Posts: 7,252
Ontario, Canada
There may be a better way of doing this, but this will work
Code:
$gettok($gettok(*!*@123.456.789.100,2,64),1-3,46) $+ .*
Copy Link to Clipboard
Re: Getting a value
Buggs2008
#
204387
18/09/08
12:59 AM
Joined:
Oct 2007
Posts: 214
B
Buggs2008
OP
Fjord artisan
OP
Buggs2008
Fjord artisan
B
Joined:
Oct 2007
Posts: 214
Thanks so much Russel.
That helped alot. I dont know why using $gettok didnt cross my mind.
Cheers
Jay
Copy Link to Clipboard
Re: Getting a value
Buggs2008
#
204391
18/09/08
06:42 AM
Joined:
Dec 2002
Posts: 155
Tijuana, México
S
Strider
Vogon poet
Strider
Vogon poet
S
Joined:
Dec 2002
Posts: 155
Tijuana, México
Here's another way:
Code:
$gettok($mask(*!*@123.456.789.100,4),2,64)
Edit: Added the $gettok.
Last edited by Strider;
18/09/08
06:56 AM
.
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage