RegExp support for expected patterns
Brought to you by:
johanwalles,
kerneldebugger
Adding support for RegExp's might add flexibility to the utility.
E.g., one can expect multiple values using value1|value2 sytax, or some response staring with aaa and ending in bbb like aaa.*bbb, etc...
Also, the utility might return captured regexp groups, so that some parts of the response can be parsed as well... Please see http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html#cg for details of capturing in java regexp.