Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching with regular expressions
Message
De
02/11/2010 08:55:03
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Searching with regular expressions
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MySQL
Divers
Thread ID:
01487847
Message ID:
01487847
Vues:
112
Hello Everybody

I have to extract special lines from a textfile.
I know how to read the file line by line into a string.
But i don't know how to search for regular expressions within a line?

Example:

xxxxxxxxx from="xyz@aabca.com" to="aaa@bbb.com" xxxxxxxxxxxxxxxx
xxxxxxxxx from="xxxyz@adddaa.com" to="abab@xyz.com" xxxxxxxxxxxxxxxx
xxxxxxxxx from="xyyyyyyyz@aaa.com" to="aaa@bbb.com" xxxxxxxxxxxxxxxx
xxxxxxxxx from="xyzzzzz@aabca.com" to="aaa@bbb.com" xxxxxxxxxxxxxxxx
xxxxxxxxx from="xzzzyz@aaa.com" to="aaa@bbb.com" xxxxxxxxxxxxxxxx

Now i wont to extract all lines with from="*@aaa.com" &&our special customer
or to="*@bbb.com" &&our special partner

In this exampel * = all emails from the domain

Any help welcomed
Best regards
Albert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform