Raised This Month: $ Target: $400
 0% 

Regex separating port from IP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-08-2010 , 11:02   Re: Regex separating port from IP
Reply With Quote #2

Using get_user_ip(), to get the ip without port, replace 0 by 1.

You can retrieve the "ip" as a server cvar the same for "port".

You don't need regex.

Edit : Or like said Yami, you can break using for example strtok().
__________________

Last edited by Arkshine; 02-08-2010 at 11:36.
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode