Hello ...
2 days ago i started to look for something in perl and it seems i cant find it anywere ...
I have the following text info ... (you can look at it for the pattern after you read the comments below )
_____info.txt______________________________________
number: +01.2345.6789
bday: 22.11.1984
email: user@foo.com
country: US
status: Member
name: John
lastname: Smith
email: Foo@foo.com
descr: member since 2005
car: Touareg
changed: porsche
number: +40.213.957
descr: big boobs
descr: blue eyes
bday: 22.11.1984
descr: hot chick
country: IT
name: lucy
lastname: bitch
email: lucybiatch@foo.com
number: +01.12575.5432
descr: Sick of lucy
name: John
lastname: paul
descr: Hard Worker
descr: looking for .. perl
country: FR
email: john.crazy@foo.com
car: porsche parts from john smith
status: Not registered
_____________________________________________________
What i would like to do ... is to extract the phone number from the group of data that contains name JOHN ...
I have the following patterns ... phone number is allways the first afer a blank line and the line starts with the word NUMBER: ... and the name is somwere in that data field ... but the line allways begins with NAME:
So in the end i would have:
__________________________________
number: +01.2345.6789
name: John
number: +01.12575.5432
name: John
_________________________________
or just the numbers ... becasue my new db will be named john ..
I tryed to build something but really doesnt works out ...
I also tryed TextPipe ... because the database is larger than 600 mb ... so either a perl or textpipe script would help
Please i really need help .. after 2 days of searching ..
Thank you very much ..
2 days ago i started to look for something in perl and it seems i cant find it anywere ...
I have the following text info ... (you can look at it for the pattern after you read the comments below )
_____info.txt______________________________________
number: +01.2345.6789
bday: 22.11.1984
email: user@foo.com
country: US
status: Member
name: John
lastname: Smith
email: Foo@foo.com
descr: member since 2005
car: Touareg
changed: porsche
number: +40.213.957
descr: big boobs
descr: blue eyes
bday: 22.11.1984
descr: hot chick
country: IT
name: lucy
lastname: bitch
email: lucybiatch@foo.com
number: +01.12575.5432
descr: Sick of lucy
name: John
lastname: paul
descr: Hard Worker
descr: looking for .. perl
country: FR
email: john.crazy@foo.com
car: porsche parts from john smith
status: Not registered
_____________________________________________________
What i would like to do ... is to extract the phone number from the group of data that contains name JOHN ...
I have the following patterns ... phone number is allways the first afer a blank line and the line starts with the word NUMBER: ... and the name is somwere in that data field ... but the line allways begins with NAME:
So in the end i would have:
__________________________________
number: +01.2345.6789
name: John
number: +01.12575.5432
name: John
_________________________________
or just the numbers ... becasue my new db will be named john ..
I tryed to build something but really doesnt works out ...
I also tryed TextPipe ... because the database is larger than 600 mb ... so either a perl or textpipe script would help

Please i really need help .. after 2 days of searching ..
Thank you very much ..