[osflash] RegExp question

Darren Cook darren at dcook.org
Wed Jun 6 22:09:59 EDT 2007


> Sounds good to me!  What's \s?

Any whitespace character. \S is the complement.

According to the manual (*) \b and \B are assertions, meaning they
require a match, but don't consume any characters. \s and \S will not
just match something, but also consume the character. Consuming the
character is normally more intuitive.

Darren

*: http://jp.php.net/manual/en/reference.pcre.pattern.syntax.php
 (PCRE is used in most major languages, but I think the AS3
implementation may be slightly different; \s is definitely in AS3
regexes though)




More information about the osflash mailing list