Help to get a number from tag!!!
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Help to get a number from tag!!!

Started by mOrrI, 07 November, 2003, 04:00:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mOrrI

User: Testing    TAG: $MyINFO $ALL Testing dd<++ V:0.251,M:A,H:1/0/0,S:3,PT:1.0>$ $Cable$ddd$0 $8935101980367083748$

    User: Testing    TAG: $MyINFO $ALL Testing PTDC++ lite<++ V:0.25,M:A,H:1/0/0,S:3,PT:1.0>$ $Cable$$0 $8935101980367083748$?


the number in Red-Bold is the one i want to get :|

and i got these lines to get it... but i think this is not the way...  :))

     _,v,getshare = strfind(curUser.sMyInfoString,"$$(%d+)")

      _,v,nickname,getshare = strfind(curUser.sMyInfoString,"$(%w+)$(%d+)")

Guibs

Hi there,

mOrrI,,
I (& my script,, lol) love your client... :D

h? h? h?

> PT:1.0 <

loOol

I'm working on parsing,, at the moment,,...
But a ' normal' client should show:
-----
$MyINFO $ALL Tom_Sawyer $ $DSL$my mail$2229819$
-----
So,... your infos doesn't seems to be 'normal'... :s
-----
$Cable$ddd$0 $8935101980367083748$
-----
Btw,, maybe you could try:
-----
s,e,mysterious = strfind(data,"[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+[^$]+[^$]+([^$]+)")
-----
really not tested,... :p

Good luck,,

l8tr,, ;)
-- Please,... don\'t ask help in Pm,...Forums are made for that, to help everyone & my Inbox pm will be safe,... Thks,,  :))  --
CB forum     /     CB Home page

mOrrI

s,e,mysterious = strfind(data,"[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+[^$]+[^$]+([^$]+)")


now this is what i want to learn...

how those that work, so that i can understand it :|


btw i will explain the client type later...
wasn't me who created it... :|

OpiumVolage

s,e,mysterious = strfind(data,"[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+[^$]+[^$]+([^$]+)")

How does it work?

this regex is saying find 1 or more "$" ([$]+) then find one or more non "$" ([^$]+ repeated 3 times. find 1 or more "$", find one or more non " or $" ([^$]+) find one or more non "$" then capture the folowings non "$".

Sick, and this is working ?

try with s, e, mysterious = strfind(data,"$ $[^$]+$[^$]*$(%d+)")

find first "$ $" string ($ space $) then one or more non "$" one "$" 0 or more non "$", one "$" and capture one or more digits.

And look here to try understanding how it works.

mOrrI

many thanks to both...

but the 1st one didn't work ;)

and the:

s, e, mysterious = strfind(data,"$ $[^$]+$[^$]*$(%d+)")

WORKED ;)

SMF spam blocked by CleanTalk