[Ilugc] Some major help with Regex and perl

  • From: arvind_7@xxxxxxxxxxx (Arvind Kalyan)
  • Date: Wed, 4 Sep 2002 13:14:11 +0530

On Tuesday 03 Sep 2002 21:35, Abhilash_Shanmugham wrote:

#comments1
DNFAR1S query tli tcp /dev/tcp \x00020bb8a9f3702f0000000000000000

#comments
V1=DNFAR1S
V2=query
v3=tcp
v4=/dev/tcp
v5=0002
v6=3000 // dec of 0bb8
v7=169.43.112.47 // (a9f3702f converted to decimal )

How do I match this pattern  repeatedly so that I can create another file
like this

      awk is your friend here. 

[...]

(The question was for perl)

Read `man perlre` its got all that you need to know about regex in perl.

After you read even half of it, you should be able to write down your own 
code for doing what you wanted.

-- 
Arvind Kalyan
21CSE131 - II B.E. CSE,         arvind@xxxxxxxxxxxx
Kongu Engineering College       http://www.kongu.ac.in

___________________________________________________
Kongu Engineering College - Assuring the Best!!!
http://kongu.ac.in, http://kongu.edu


Other related posts: