Tag Archive for 'iswhitespace()'

08
Sep

Checking if a character is whitespace using the Flex StringUtil class’s isWhitespace() method

The following example shows how you can check whether a character is a whitespace character by using the isWhitespace() method in the mx.utils.StringUtil class. And just for giggles, I also show how you can do the same thing using regular expressions (RegExp) with POSIX character classes.

Full code after the jump.

Continue reading ‘Checking if a character is whitespace using the Flex StringUtil class’s isWhitespace() method’