[Brisbane-pm] Brisbane-pm Digest, Vol 29, Issue 1
Geoffrey Wood
geoff at gmgsolutions.com.au
Wed Jun 6 15:55:05 PDT 2007
Sorry guys, wasn't thinking that text formatting would be suppressed (you
can't see red, green, blue)
Here is another way to look at it:
Header Hex No L Alpha/Num string
0504050000002a000022c402000000000009556e69742038393030000000007fffffff000120
L Numeric string Hex No L Alpha/Num string
000f30303031303831373330333335303000000022c502000000000009556e69742038393031
L Numeric string Hex No
000000007fffffff000120000f30303031303831373330333335373000000022c60200000000
L Alpha/Num string L Numeric string
0009556e69742038393032000000007fffffff000120000f3030303130383137333033333833
30
Header- 3 Bytes
Hex No- 3 Bytes
L - String Length
Hope this makes sense.
ghw
----------------------------------------------------------------------
Message: 1
Date: Wed, 6 Jun 2007 23:24:18 +1000
From: "Geoffrey Wood" <geoff at gmgsolutions.com.au>
Subject: [Brisbane-pm] regex syntax - data extraction
To: <brisbane-pm at pm.org>
Message-ID: <001b01c7a83d$fca1c4c0$2800a8c0 at DellD620>
Content-Type: text/plain; charset="us-ascii"
Hi all
Trying to work out how to extract both hexadecimal values(as numeric) and
string text (alphanumeric+spaces) from the string variables such as below.
String snippet:
0504050000002a000022c402000000000009556e69742038393030000000007fffffff000120
000f30303031303831373330333335303000000022c502000000000009556e69742038393031
000000007fffffff000120000f30303031303831373330333335373000000022c60200000000
0009556e69742038393032000000007fffffff000120000f3030303130383137333033333833
30
Wanted data:
Green - 3 byte Hex value
Blue - string length
Red - string
8900 'Unit 8900' '000108173033500'
8901 'Unit 8901' '000108173033570'
8902 'Unit 8902' '000108173033830'
Any help appreciated.
Kind regards,
Geoffrey Wood
Technical Director
GMG Solutions Pty Ltd
m: +61 4 1514 8448
f: +61 7 5571 2877
e: geoff at gmgsolutions.com.au
w: www.gmgsolutions.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mail.pm.org/pipermail/brisbane-pm/attachments/20070606/870ab300/attac
hment.htm
------------------------------
_______________________________________________
Brisbane-pm mailing list
Brisbane-pm at pm.org
http://mail.pm.org/mailman/listinfo/brisbane-pm
End of Brisbane-pm Digest, Vol 29, Issue 1
******************************************
More information about the Brisbane-pm
mailing list