All i have the following message which i need to break up.
2005/11/18 00:07:18:328: FIXPump: Received data on connection {OBMSCNX
+} [8=FIX.4.29=040535=849=EXLINK256=DB_ORDER50=DESRISKGATEWAY57=DCN323
+0134=4045652=20051
118-05:07:181=ATOP116=0.0000000011=DES:fud632_2005111814=15.000017=013
+1730438520=031=1531.0000000032=1.000037=131726063238=15.000039=254=25
+5=NamerOfContr
0=20051118-05:07:18150=2151=0.0000198=13173047161317260632109=DCN32301
+63=0167=FUT200=200512207=TSE40=244=1531.000000005113=06556=20051117-2
+3:06:4910=021]
Now What i want to be able to do is say match everything between the
, and then go over each = and split out the part of the left and the part of the right so something like where you have,
8=FIX, $left would = 8 and $right would = FIX
2005-11-24 Retitled by planetscape, as per Monastery guidelines
Original title: 'Messege regex'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.