I just noticed that there was a few questions on a “competing” discussion group (no, not Advantage) about being able use a single FLOW step to determine if a string if null, empty, has spaces, etc. I thought I’d share some info on using regular expressions as labels.
The syntax is described in an appendix in the B2B Integrator/IS Developer Guide. For labels, the expression must be surrounded by slashes.
Here’s a flow example:
BRANCH on ‘/tailOfAK5’
/.+/: MAP (tailOfAK5 has one or more chars, maybe spaces)
$default: SEQUENCE (tailOfAK5 is empty or null)
Other examples:
/.+/
Selected if branch switch has one or more characters, including just spaces. Strings that are $null or are empty will not be selected by this label (e.g. the branch won’t take this path). Strings that have only spaces WILL take this branch.
/^ISA/
Selected if branch switch starts with the characters “ISA”.
/[^ ]/
Selected if branch switch not null, not empty, and contains at least one non-space character.
/[^ \t\r\n]/
Selected if branch switch not null, not empty, and contains at least one non-whitespace character.
Ain’t it cool? 
Enjoy!
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services