cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

alphanumeric string


@Jeff Bohrer wrote:

of course there is the Lexical class function on the comparision palatte to do all the regexs for you!

 

Hmmmmm This round thing is neat--- I should call it a "Wheel"


The OP asked how to test a string; your wheel would need a loop around it to test every character.  On the other hand, I never think to use the Lexical Class function because I have a hammer.

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

Mensaje 11 de 20
1.963 Vistas

@jcarmody wrote:

@Jeff Bohrer wrote:

of course there is the Lexical class function on the comparision palatte to do all the regexs for you!

 

Hmmmmm This round thing is neat--- I should call it a "Wheel"


The OP asked how to test a string; your wheel would need a loop around it to test every character.  On the other hand, I never think to use the Lexical Class function because I have a hammer.


Well, Jim beat me to the punch.  I was going to suggest a "side by side" comparison to see which solution makes it to the Rube Goldberg thread.

0 kudos
Mensaje 12 de 20
1.953 Vistas

@Darin.K wrote:

@jcarmody wrote:

@Jeff Bohrer wrote:

of course there is the Lexical class function on the comparision palatte to do all the regexs for you!

 

Hmmmmm This round thing is neat--- I should call it a "Wheel"


The OP asked how to test a string; your wheel would need a loop around it to test every character.  On the other hand, I never think to use the Lexical Class function because I have a hammer.


Well, Jim beat me to the punch.  I was going to suggest a "side by side" comparison to see which solution makes it to the Rube Goldberg thread.


Gosh!  bust my chops!!!!  the OP did state he wanted to test every character

 

"suppose i give a single character and it should check for alphanum....


"Should be" isn't "Is" -Jay
0 kudos
Mensaje 13 de 20
1.950 Vistas

Repeat after me:  "Don't Mess With Texas Regexes!"  Guiño

0 kudos
Mensaje 14 de 20
1.946 Vistas

oh heck.... just 7.0 type cast it  Emoticono muy feliz


"Should be" isn't "Is" -Jay
0 kudos
Mensaje 15 de 20
1.944 Vistas

Here is my side by side:

 

AlphanumericSideBySide.png

 

Now can someone explain to me again why And Array Elements returns true for an empty array?

Mensaje 16 de 20
1.936 Vistas

@Darin.K wrote:

Here is my side by side:

 

AlphanumericSideBySide.png

 

Now can someone explain to me again why And Array Elements returns true for an empty array?


WAY off topic---

 

You had this expained before?  the cat is dead and alive at the same time


"Should be" isn't "Is" -Jay
0 kudos
Mensaje 17 de 20
1.931 Vistas

Hopefully the OP's question has been answered five different ways so this diversion is ok.

 

Explanations I have heard range from the ever helpful "It has to return something" to the slightly more informational "The default use is to look for a single false in a sea of true values, so the de facto default is true".  In my mind, Booleans are False until explicitly set to true so empty elements should be considered False (like in Or Array Elements).  The annoyance is that this choice requires negation to add a check for the empty case.  And Array Elements AND NOT Empty Array.  If AndAE returned False instead, you could use a simple OR with the Empty Array check to get back the current behavior if you so desired.

Mensaje 18 de 20
1.920 Vistas

This conversation was very useful and i got to see different ways to approach this problem .Thanks once again .

0 kudos
Mensaje 19 de 20
1.901 Vistas

@Darin.K wrote:

Hopefully the OP's question has been answered five different ways so this diversion is ok.

 

Explanations I have heard range from the ever helpful "It has to return something" to the slightly more informational "The default use is to look for a single false in a sea of true values, so the de facto default is true". 


From a performance standpoint i guess that's the solution choosen since it'll stop the comparison earlier and could save lots of comparisons. The function should include "and not empty array" in itself since, as you say, an empty array should default to false.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 kudos
Mensaje 20 de 20
1.897 Vistas