lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Egor Skriptunoff <egor.skriptunoff <at> gmail.com> writes:

> 
> 
> On Sun, Feb 3, 2013 at 8:14 PM, Billy Peacock <spooky_loco_pv <at> yahoo.com>
wrote:
> I am trying to collect a range of Data from a string, that holds Data Values
> example..
>  assert(Table.Ammo.Signature == 'AMMO')
>  assert(Table.Ammo.['Data Size'] == 194)
> If anyone has any input on how to help me, i would appreciate it alot
> 
> 
> IMHO, LPEG is a bit overkill.Lua regexp support is enough here.Two versions: 

--------------------------

Hi, i want to thank you for your advance technique its really nice. I appreciate
it. Do you know how i could parse each record singularly?, because each record
is placed after each other in a Text File

Pastebin has 4 Records of 'AMMO' each different from the next
Example: http://pastebin.com/SGmppN33