467,146 Members | 1,018 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

regular expression

hi,
TURNAWAY (type="video" product="opiv" session="foo12345" customer="muco:1234" time="1234567890")
CUSTOMER {customer_id="muco:443" name="Yale University"}
PLAYBACK (type="audio" product="glmu" customer_id="muco:443" session="muco:foo12345abcde" user_id="muco:123" identifier="muco:123456" publisher="EMI" title="Merengue from Music of Guatemala, Vol. 1" played="180" timestamp="1234567890" token="abcdef1234567890abcdef")
HTTPLOG (format="apache" product="cpho" customer="123")

In this code TURNAWAY is one line,CUSTOMER is another line,PLAYBACK is another line and HTTPLOG is another line. I want a regular expression to match the things inside () or {} or and build a hash for the ones in braces and put eache line in a list . Cols u please help me?

Regards,
pavan
Aug 22 '08 #1
  • viewed: 767
Share:
1 Reply
KevinADC
Expert 2GB
lets see what you have tried so far to solve your problem.
Aug 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Buddy | last post: by
4 posts views Thread by Neri | last post: by
11 posts views Thread by Dimitris Georgakopuolos | last post: by
3 posts views Thread by James D. Marshall | last post: by
7 posts views Thread by Billa | last post: by
9 posts views Thread by Pete Davis | last post: by
25 posts views Thread by Mike | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.