Efficient Way To Check If Certain Characters Exist in Variable

Warren Kuhl warrenkuhl at gmail.com
Wed Jan 19 13:34:18 EST 2011

What would be the most efficient way to check a variable and replace any of
the characters with empty if the character is not a alpha (upper or lower),
numeric (0-9) or a '-'?

The only way I can think of doing this is a repeat loop and checking the
value of each character and replacing with empty if not alpha, numeric or

Any other suggestions for more efficient code?


More information about the Use-livecode mailing list