determinate determinate

Author Topic: get tag from $MyINFO string  (Read 98 times)

0 Members and 1 Guest are viewing this topic.

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 77
  • Karma: +0/-6
get tag from $MyINFO string
« on: October 31, 2011, 11:08:06 pm »
myinfo = "$MyINFO $ALL Hamachi <((((!))))><++ V:0.782,M:A,H:0/0/3,S:1>$ $0.005$$0$"

local _,_,tag = string.find(myinfo,"(%b<>)[^ ]+")

I like to get:
<++ V:0.782,M:A,H:0/0/3,S:1>

But get:
<(((())))>

Hope some like to help, Thanks :)

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: get tag from $MyINFO string
« Reply #1 on: October 31, 2011, 11:46:03 pm »
Code: [Select]
local _,_,tag = myinfo:find("(%b<>)%$")You know if this is script for PtokaX you can pull the sTag from the user object.
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 77
  • Karma: +0/-6
Re: get tag from $MyINFO string
« Reply #2 on: November 01, 2011, 08:24:24 am »
Thanks Mutor

It for client site, maybe bad Topic.

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: get tag from $MyINFO string
« Reply #3 on: November 01, 2011, 02:48:31 pm »
Bad part of board :P Now it is in correct one  ;D

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 77
  • Karma: +0/-6
Re: get tag from $MyINFO string
« Reply #4 on: November 01, 2011, 10:02:30 pm »
Thanks PPK :D
« Last Edit: November 01, 2011, 10:04:26 pm by Hamachi »

 

determinate determinate
guestbook