Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular Expresion (read a block)

Status
Not open for further replies.

ufobaby

MIS
Sep 25, 2001
238
US
hi all,

me new to regular expresion. below is the file
'//// File Start
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa

^D

Funds Transfer USD 10.00
Cust Ref : EEE
Bene Name : Niraj
Some More : 1
ONE MORE FIELD : Junk
THE LAST FIELD : For Trial

Funds Transfer USD 20.00
Cust Ref : BBB
Bene Name : Niraj
Some More : 1
ONE MORE FIELD : Junk
THE LAST FIELD : For Trial
'//// File End

need to read these blocks (using Regular expresion) and store them in an array... later sort the same on criteria which shall be maintained in some ini file or database.

the problem is how to construct a regular expresion for reading the entire block.

Pls help !


__________
[cheers]
Niraj...
"The unexpected success is not just an opportunity for innovation. It demands innovation."
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top