LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

regexp standard caracters

Solved!
Go to solution

hello,

 

i'm looking for a regexp to avoid user using anything else than 1-9 a-z A-Z and "_"     for a filename.

 

 

regards

 

Tinnitus

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 3
(2,496 Views)
Solution
Accepted by topic author tinnitus

[^\w] will match anything that's not a word character.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 3
(2,484 Views)
\W is a shorter way to write [^\w]. Capitalization is typically the easy way to negate a character class.
Message 3 of 3
(2,479 Views)