Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4007922
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:41:26+00:00 2026-05-20T08:41:26+00:00

i have to tokenize a FIX ( Financial Information Exchange ) message in to

  • 0

i have to tokenize a FIX ( Financial Information Exchange ) message in to tag and values using Perl, We have different type of messages like ExecutionReport, NewOrderSingle, CancelRequest.. Msg in log file looks like below

2011-02-17 12:01:46,870 INFO
ExecutionReport (8=FIX.4.29=33235=849=ZZZ56=XXXX34=455452=20110217-17:01:4650=MCDV57=kgs37=86669611=2732655.1876=BBBB17=21728781020=0150=139=155=HHHHH48=44490310822=1207=US54=138=12000040=115=USD59=032=10031=26.15151=11200014=80006=26.1472560=20110217-17:01:4658=COT100 at 26.15(USD) for ORDER ID #86669664=201102235847=VVV10=221)

I want to split this message as

  1. token1 : type of msg ( ExecutionReport )
  2. token2 : actual msg ( (8=FIX4.2….10=221)

how to omit initial some characters in msg ( like date, time, INFO etc ) & split this message in to above 2 parts using perl…?

(Note : Don’t get confused, actual data is delimeted by Control Character (^A).. not visible here )

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:41:26+00:00Added an answer on May 20, 2026 at 8:41 am

    It looks like you just want to split on whitespace, so try something like this:

    my $logline = "2011-02-17 12:01:46,870 INFO ExecutionReport (8=FIX.4.29=3...";
    my ($date, $time, $level, $type, $msg) = split(/\s+/, $logline, 5);
    

    Now you can handle each token separately and the variables $type and $msg hold the two elements you specifically mentioned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem where I need to tokenize my string (using java code)
i have a Perl script which tokenize a string @s=split /([^a-zA-Z \t\-\'\,\.]+)/, $_[0]; #
I have around 100 rows of text that I want to tokenize, which are
Have just started using Google Chrome , and noticed in parts of our site,
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have string like this: command . / * or any other char like
i have a file of numbers like that : XXX are unknow numbers XXXX
i have an array of type char char *arg[100] this array its reading the
I have a file with function prototypes like this: int func1(type1 arg, int x);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.