[Brisbane-pm] regex syntax - data extraction

Geoffrey Wood geoff at gmgsolutions.com.au
Wed Jun 6 06:24:18 PDT 2007


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/attachment.html 


More information about the Brisbane-pm mailing list