Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regular Expression
Message
De
24/11/2013 13:11:42
 
 
À
23/11/2013 13:34:59
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01588553
Message ID:
01588576
Vues:
89
>Hi folks.
>I'm using the following regular expression to validate some strings:
>
>[0-9]+; [0-9]+ [0-9]+ SCHEMA - \b(information-schema|(?!pg_))\w+\b [a-zA-Z]+
>
>8; 2615 1490850 SCHEMA - e9999 postgres
>8; 2615 1490850 SCHEMA - pg_catalog postgres
>8; 2615 1490850 SCHEMA - pg_temp postgres
>8; 2615 1490850 SCHEMA - information-schema postgres
>8; 2615 1490850 SCHEMA - information-test postgres
>8; 2615 1490850 SCHEMA - information postgres
>8; 2615 1490850 SCHEMA - schema postgres
>8; 2615 1490850 SCHEMA - myinformation-schema postgres
>8; 2615 1490850 SCHEMA - information-schemas postgres
>
>Test string - Expected result - Given result
>String 1 - Valid - Valid
>String 2 - Invalid - Invalid
>String 3 - Invalid - Invalid
>String 4 - Invalid - Invalid
>String 5 - Valid - Invalid (Error)
>String 6 - Valid - Valid
>String 7 - Valid - Valid
>String 8 - Valid - Invalid (Error)
>String 9 - Valid - Valid
>
>Please, someone could help me to find the right pattern?

Sure - but can you explain exactly what the pattern needs to verify?

Looking at your pattern - too much guesswork - I cannot find what you want
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform