Jump to content

NEWBIE! Retrieve numerical data from string


interpim

Recommended Posts

How would I pull numbers from a string that can be used to assign values to variables in my script?

 

lines would be similar to this...

 

[21:23:21] You get 307 realm points!
[21:23:21] You hit Tiestoxl for 439 (-194) damage!
[21:23:21] You get 41,943,040 experience points!
[21:23:21] Your share of the loot is 2 gold, 17 silver, and 55 copper pieces.
[01:06:04] 101 style damage was blocked by the defender's magic shielding.
[01:06:07] Matado hits you for 103 damage.
[01:06:08] Joe hits you for 103 damage.

darn :/  another problem.

 

I was using a small, maybe 20kb file to do the testing on this...

 

Actual log files can be huge, so i attempted uploading a 500kb file or so, and It keeps preventing me from uploading it... keeps exiting out.

 

page is at http://interpim.com/parser

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.